mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-15 11:36:54 +00:00
Fix assertion violation when editing GIF / video.
If a GIF / video had no thumbnail the _animated flag was removed.
This commit is contained in:
parent
5a8ce36181
commit
aedbd6dfe4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user