Skip to content

Commit

Permalink
fix #96881: Vertical scrolling: wrong result, or/and inability to ent…
Browse files Browse the repository at this point in the history
…er notes with mouse in score with staves >1
  • Loading branch information
lasconic committed Feb 16, 2016
1 parent dbff9cb commit 1cc8542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/score.cpp
Expand Up @@ -1367,11 +1367,11 @@ bool Score::getPosition(Position* pos, const QPointF& p, int voice) const
}

if (nstaff) {
qreal s1y2 = ss->bbox().y() + ss->bbox().height();
sy2 = s1y2 + (nstaff->bbox().y() - s1y2) * .5;
qreal s1y2 = ss->bbox().bottom();
sy2 = system->page()->canvasPos().y() + s1y2 + (nstaff->bbox().y() - s1y2) * .5;
}
else
sy2 = system->page()->canvasPos().y() + system->page()->height() - system->pos().y(); // system->height();
sy2 = system->page()->canvasPos().y() + system->page()->height() - system->pagePos().y(); // system->height();
if (y < sy2) {
sstaff = ss;
break;
Expand Down

0 comments on commit 1cc8542

Please sign in to comment.