From 45f5a502c1344cba2a3b90954d55d4ed37b3a619 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 24 Nov 2019 05:12:38 +0100 Subject: Fix scaling images in viewer Don't resize the image unconditionally. When doing that while keeping the aspect ratio, it may grow wider than the window/widget size. So check if it fits. If it doesn't scale down, otherwise leave it. --- viewer.h | 1 - 1 file changed, 1 deletion(-) (limited to 'viewer.h') diff --git a/viewer.h b/viewer.h index 0bbb7ea..196a2dd 100644 --- a/viewer.h +++ b/viewer.h @@ -22,7 +22,6 @@ class Viewer : public QWidget { int mCurIndex; QLabel *mLabel; QStringList mFiles; - QSize mMaxSize; }; #endif // VIEWER_H -- cgit v1.2.3-70-g09d2