diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp index e6fc79460..4694106e0 100644 --- a/Telegram/SourceFiles/ui/image/image.cpp +++ b/Telegram/SourceFiles/ui/image/image.cpp @@ -334,6 +334,11 @@ Image::Image(std::unique_ptr &&source) } void Image::replaceSource(std::unique_ptr &&source) { + const auto width = _source->width(); + const auto height = _source->height(); + if (width > 0 && height > 0) { + source->setInformation(_source->bytesSize(), width, height); + } _source = std::move(source); }