mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +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:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user