diff options
author | Aziz Berkay Yesilyurt <abyesilyurt@gmail.com> | 2021-07-13 23:40:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-20 23:40:26 +0200 |
commit | 63e78ccd9f0958c73398f7cb5a4451948b72f0f0 (patch) | |
tree | 99406b408e4565df6519505675098f536c06b8a5 /Userland/Applications/ImageViewer/ViewWidget.cpp | |
parent | 285d4fac383608a44b65c48b8c7e1d52a71c31e2 (diff) | |
download | serenity-63e78ccd9f0958c73398f7cb5a4451948b72f0f0.zip |
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.
Diffstat (limited to 'Userland/Applications/ImageViewer/ViewWidget.cpp')
-rw-r--r-- | Userland/Applications/ImageViewer/ViewWidget.cpp | 5 |
1 files changed, 0 insertions, 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) |