mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
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.
This commit is contained in:
parent
285d4fac38
commit
63e78ccd9f
Notes:
sideshowbarker
2024-07-18 08:40:14 +09:00
Author: https://github.com/abyesilyurt Commit: https://github.com/SerenityOS/serenity/commit/63e78ccd9f0 Pull-request: https://github.com/SerenityOS/serenity/pull/8734 Reviewed-by: https://github.com/kleinesfilmroellchen
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user