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:
Aziz Berkay Yesilyurt 2021-07-13 23:40:51 +02:00 committed by Andreas Kling
parent 285d4fac38
commit 63e78ccd9f
Notes: sideshowbarker 2024-07-18 08:40:14 +09:00

View File

@ -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)