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;
|
caption = media->getCaption().text;
|
||||||
|
|
||||||
if ((!_animated && (dimensions.isEmpty() || doc)) || image->isNull()) {
|
if (!_animated && (dimensions.isEmpty() || doc || image->isNull())) {
|
||||||
_animated = false;
|
|
||||||
if (image->isNull()) {
|
if (image->isNull()) {
|
||||||
_thumbw = 0;
|
_thumbw = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue