ImageViewer: Use the same function to resize the window

ImageViewer used two different logic to resize the display window, which
leads to confusing behaviour for rotate function. Now all the resizing
behaviour goes through the existing resize_window function.
This commit is contained in:
Aziz Berkay Yesilyurt 2021-07-13 23:34:12 +02:00 committed by Andreas Kling
commit 285d4fac38
Notes: sideshowbarker 2024-07-18 08:40:18 +09:00
3 changed files with 5 additions and 13 deletions

View file

@ -130,7 +130,7 @@ void ViewWidget::set_scale(int scale)
m_bitmap_rect.set_size(new_size);
if (on_scale_change)
on_scale_change(m_scale, m_bitmap_rect);
on_scale_change(m_scale);
relayout();
}