From aedbd6dfe482a0ff858cb4c97dc9ff963c76894f Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 1 May 2017 11:03:56 +0300 Subject: [PATCH] Fix assertion violation when editing GIF / video. If a GIF / video had no thumbnail the _animated flag was removed. --- Telegram/SourceFiles/boxes/send_files_box.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 89354275ef..39c4d53bec 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -490,8 +490,7 @@ EditCaptionBox::EditCaptionBox(QWidget*, HistoryMedia *media, FullMsgId msgId) : } caption = media->getCaption().text; - if ((!_animated && (dimensions.isEmpty() || doc)) || image->isNull()) { - _animated = false; + if (!_animated && (dimensions.isEmpty() || doc || image->isNull())) { if (image->isNull()) { _thumbw = 0; } else {