diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp index 2c49cc587..6b2d806cb 100644 --- a/Telegram/SourceFiles/ui/image/image.cpp +++ b/Telegram/SourceFiles/ui/image/image.cpp @@ -349,7 +349,7 @@ const QPixmap &Image::cached( bool single) const { const auto ratio = style::DevicePixelRatio(); if (w <= 0 || !width() || !height()) { - w = width() * ratio; + w = width(); } else if (h <= 0) { h = std::max(int(int64(height()) * w / width()), 1) * ratio; } else {