Skip to content

Commit

Permalink
Fix #290694: Ensure that final barline created during musicxml import…
Browse files Browse the repository at this point in the history
… (and elsewhere) spans across multi-staff parts

Backport of musescore#8146, but see also musescore#8175
  • Loading branch information
wizofaus authored and Jojo-Schmitz committed Aug 13, 2021
1 parent 8d42e8f commit 866ba44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3717,6 +3717,9 @@ void Measure::setEndBarLineType(BarLineType val, int track, bool visible, QColor
bl = new BarLine(score());
bl->setParent(seg);
bl->setTrack(track);
Part* part = score()->staff(track / VOICES)->part();
if (part != NULL && part->nstaves() > 1)
bl->setSpanStaff(true);
score()->addElement(bl);
}
bl->setGenerated(false);
Expand Down

0 comments on commit 866ba44

Please sign in to comment.