From e1000b79a30343278eb64d072fb1379302f7beb4 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 16 Apr 2019 07:49:58 +0300 Subject: [PATCH] Fixed display of file sizes with invalid dimensions when edit media. --- Telegram/SourceFiles/boxes/edit_caption_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index cf7ed8333..0102ca310 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());