From 4b8a42fafd267b75beac55f83d34e9d282e589d3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 19 Mar 2020 12:06:28 +0400 Subject: [PATCH] Fix crash in forwarded dice media. --- Telegram/SourceFiles/history/view/media/history_view_dice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/history/view/media/history_view_dice.cpp b/Telegram/SourceFiles/history/view/media/history_view_dice.cpp index 90200d1f7..f753d434a 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_dice.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_dice.cpp @@ -51,6 +51,9 @@ void Dice::draw(Painter &p, const QRect &r, bool selected) { _end->initSize(); } } + if (!_end) { + _drawingEnd = false; + } if (_drawingEnd) { _end->draw(p, r, selected); } else {