2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix caption editing in grouped media.

This commit is contained in:
John Preston
2017-12-25 17:16:44 +03:00
parent a8ac18e4fd
commit 4e8f5541af
3 changed files with 6 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ EditCaptionBox::EditCaptionBox(
if (const auto photo = media->getPhoto()) {
dimensions = QSize(photo->full->width(), photo->full->height());
image = photo->full;
_photo = true;
} else if (const auto doc = media->getDocument()) {
dimensions = doc->dimensions;
image = doc->thumb;