Skip to content

Commit

Permalink
Merge pull request #4799 from MarcSabatella/286068-playback-cursor-in…
Browse files Browse the repository at this point in the history
…visible-staff

fix #286068: playback cursor should track notes on invisible staves
  • Loading branch information
anatoly-os committed Mar 15, 2019
2 parents 07a2ad3 + e6a418b commit a9df4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/scoreview.cpp
Expand Up @@ -548,15 +548,15 @@ void ScoreView::moveCursor(const Fraction& tick)
qreal x2;
Fraction t2;
Segment* ns = s->next(SegmentType::ChordRest);
if (ns) {
if (ns && ns->visible()) {
t2 = ns->tick();
x2 = ns->canvasPos().x();
}
else {
t2 = measure->endTick();
// measure->width is not good enough because of courtesy keysig, timesig
Segment* seg = measure->findSegment(SegmentType::EndBarLine, measure->tick() + measure->ticks());
if(seg)
if (seg)
x2 = seg->canvasPos().x();
else
x2 = measure->canvasPos().x() + measure->width(); //safety, should not happen
Expand Down

0 comments on commit a9df4a0

Please sign in to comment.