QuickShow: Add reset zoom action to toolbar

When zoom reset also reset pan origin
This commit is contained in:
Hüseyin ASLITÜRK 2020-06-15 11:17:56 +03:00 committed by Andreas Kling
commit ea1ebe8662
Notes: sideshowbarker 2024-07-19 05:37:04 +09:00
2 changed files with 5 additions and 1 deletions

View file

@ -127,6 +127,9 @@ void QSWidget::set_scale(int scale)
if (scale > 1000)
scale = 1000;
if (scale == 100)
m_pan_origin = { 0, 0 };
m_scale = scale;
relayout();
}