Fix link / forward preview on Retina screen.

Regression was introduced in 3ff17a8789.
This commit is contained in:
John Preston 2022-01-30 00:33:42 +03:00
parent 9918a20946
commit 71d4b64691
1 changed files with 1 additions and 1 deletions

View File

@ -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 {