diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index cf7ed83334..0102ca3108 100644 --- a/Telegram/SourceFiles/boxes/edit_caption_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_caption_box.cpp @@ -435,7 +435,7 @@ void EditCaptionBox::updateEditPreview() { ? fileinfo.size() : _preparedList.files.front().content.size()); // Show image dimensions if it should be sent as doc. - if (_isImage) { + if (_isImage && docPhotoSize.isValid()) { _status = qsl("%1x%2") .arg(docPhotoSize.width()) .arg(docPhotoSize.height());