Skip to content

Commit

Permalink
fix #22520: Playback head plays through time and key signature changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Sep 7, 2013
1 parent 55404ed commit 971035f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,12 @@ void ScoreView::moveCursor(int tick)
}
else {
t2 = measure->endTick();
x2 = measure->canvasPos().x() + measure->width();
// measure->width is not good enough because of courtesy keysig, timesig
Segment* seg = measure->findSegment(Segment::SegEndBarLine, measure->tick() + measure->ticks());
if(seg)
x2 = seg->canvasPos().x();
else
x2 = measure->canvasPos().x() + measure->width(); //safety, should not happen
}
t1 += offset;
t2 += offset;
Expand Down

0 comments on commit 971035f

Please sign in to comment.