git-svn-id: svn://db.shs.com.ru/libs@509 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-03-03 17:12:19 +00:00
parent 0e72cd3e48
commit fd6865125c

View File

@@ -1827,7 +1827,7 @@ void BlockView::_setNav(QRectF v) {
QTransform matrix; QTransform matrix;
double scl = qMin(vw / v.width(), vh / v.height()); double scl = qMin(vw / v.width(), vh / v.height());
double ascl = appScale(this); double ascl = appScale(this);
scl = qMin(qMax(scl, 0.02 / ascl), 50. / ascl); scl = qMin(qMax(scl, 0.02 * ascl), 50. * ascl);
matrix.scale(scl, scl); matrix.scale(scl, scl);
//qDebug() << scl; //qDebug() << scl;
QGraphicsView::setTransform(matrix); QGraphicsView::setTransform(matrix);