mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Fixed display of file sizes with invalid dimensions when edit media.
This commit is contained in:
@@ -435,7 +435,7 @@ void EditCaptionBox::updateEditPreview() {
|
|||||||
? fileinfo.size()
|
? fileinfo.size()
|
||||||
: _preparedList.files.front().content.size());
|
: _preparedList.files.front().content.size());
|
||||||
// Show image dimensions if it should be sent as doc.
|
// Show image dimensions if it should be sent as doc.
|
||||||
if (_isImage) {
|
if (_isImage && docPhotoSize.isValid()) {
|
||||||
_status = qsl("%1x%2")
|
_status = qsl("%1x%2")
|
||||||
.arg(docPhotoSize.width())
|
.arg(docPhotoSize.width())
|
||||||
.arg(docPhotoSize.height());
|
.arg(docPhotoSize.height());
|
||||||
|
Reference in New Issue
Block a user