Skip to content
Permalink
Browse files

Merge pull request #2293 from MarcSabatella/zoom-scaling

Zoom scaling
  • Loading branch information...
lasconic committed Nov 22, 2015
2 parents 648340f + f8e3e66 commit 010918b94431e16518d5a362b7bc36d79849f951
Showing with 2 additions and 2 deletions.
  1. +2 −2 mscore/scoreview.cpp
@@ -664,7 +664,7 @@ ScoreView::ScoreView(QWidget* parent)

setContextMenuPolicy(Qt::DefaultContextMenu);

double mag = preferences.mag;
double mag = preferences.mag * (mscore->physicalDotsPerInch() / DPI);
_matrix = QTransform(mag, 0.0, 0.0, mag, 0.0, 0.0);
imatrix = _matrix.inverted();
_magIdx = preferences.mag == 1.0 ? MagIdx::MAG_100 : MagIdx::MAG_FREE;
@@ -2049,7 +2049,7 @@ void ScoreView::paint(const QRect& r, QPainter& p)

void ScoreView::zoomStep(qreal step, const QPoint& pos)
{
qreal _mag = mag();
qreal _mag = lmag();

_mag *= qPow(1.1, step);

0 comments on commit 010918b

Please sign in to comment.
You can’t perform that action at this time.