mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +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
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