From 63e78ccd9f0958c73398f7cb5a4451948b72f0f0 Mon Sep 17 00:00:00 2001 From: Aziz Berkay Yesilyurt Date: Tue, 13 Jul 2021 23:40:51 +0200 Subject: [PATCH] ImageViewer: Do not return early when the scale is not changed When the image is rotated, the scale is still the same, but the window needs to be still resized. --- Userland/Applications/ImageViewer/ViewWidget.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Userland/Applications/ImageViewer/ViewWidget.cpp b/Userland/Applications/ImageViewer/ViewWidget.cpp index f2bf9b5b8d..5524279a4a 100644 --- a/Userland/Applications/ImageViewer/ViewWidget.cpp +++ b/Userland/Applications/ImageViewer/ViewWidget.cpp @@ -111,11 +111,6 @@ void ViewWidget::set_scale(int scale) if (m_bitmap.is_null()) return; - if (m_scale == scale) { - update(); - return; - } - if (scale < 10) scale = 10; if (scale > 1000)