Skip to content
Permalink
Browse files

Merge pull request #4799 from MarcSabatella/286068-playback-cursor-in…

…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 a9df4a02c07cf5666644be620c6b951becedade8
Showing with 2 additions and 2 deletions.
  1. +2 −2 mscore/scoreview.cpp
@@ -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

0 comments on commit a9df4a0

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