2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed display of file sizes with invalid dimensions when edit media.

This commit is contained in:
23rd
2019-04-16 07:49:58 +03:00
committed by John Preston
parent c2a10f9c56
commit e1000b79a3

View File

@@ -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());