the end of fantastic voyage (#2103)
This commit is contained in:
parent
25d3db05fd
commit
7a435f47d1
1 changed files with 4 additions and 3 deletions
|
@ -635,7 +635,8 @@ void ImageViewer::panQt(const QPoint &delta) {
|
|||
void ImageViewer::zoomQt(const QPoint ¢er, double factor) {
|
||||
if (factor == 1.0) return;
|
||||
TPointD delta(center.x(), center.y());
|
||||
|
||||
double scale2 = fabs(m_viewAff.det());
|
||||
if ((scale2 < 100000 || factor < 1) && (scale2 > 0.001 * 0.05 || factor > 1))
|
||||
setViewAff(TTranslation(delta) * TScale(factor) * TTranslation(-delta) *
|
||||
m_viewAff);
|
||||
update();
|
||||
|
|
Loading…
Reference in a new issue