Skip to content

Commit

Permalink
constrain scoreview also when zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 5, 2015
1 parent 169e5b6 commit 15f1850
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2046,6 +2046,8 @@ void ScoreView::zoom(qreal _mag, const QPointF& pos)
int dx = lrint(p3.x() * m);
int dy = lrint(p3.y() * m);

constraintCanvas(&dx, &dy);

_matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(),
_matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy()+dy, _matrix.m33());
imatrix = _matrix.inverted();
Expand Down

0 comments on commit 15f1850

Please sign in to comment.