Skip to content

Commit 866ba44

Browse files
wizofausJojo-Schmitz
authored andcommitted
Fix #290694: Ensure that final barline created during musicxml import (and elsewhere) spans across multi-staff parts
Backport of musescore#8146, but see also musescore#8175
1 parent 8d42e8f commit 866ba44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libmscore/measure.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3717,6 +3717,9 @@ void Measure::setEndBarLineType(BarLineType val, int track, bool visible, QColor
37173717
bl = new BarLine(score());
37183718
bl->setParent(seg);
37193719
bl->setTrack(track);
3720+
Part* part = score()->staff(track / VOICES)->part();
3721+
if (part != NULL && part->nstaves() > 1)
3722+
bl->setSpanStaff(true);
37203723
score()->addElement(bl);
37213724
}
37223725
bl->setGenerated(false);

0 commit comments

Comments
 (0)