mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00: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: 63e78ccd9f
Pull-request: https://github.com/SerenityOS/serenity/pull/8734
Reviewed-by: https://github.com/kleinesfilmroellchen
1 changed files with 0 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue