Skip to content

Commit

Permalink
Fix #325735: [MusicXML import] Final barlines wrongly and only partia…
Browse files Browse the repository at this point in the history
…lly assumed from musicxml import lacking barlines
  • Loading branch information
lvinken committed May 27, 2022
1 parent 6321404 commit 955984f
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -1616,10 +1616,11 @@ void MusicXMLParserPass2::scorePartwise()
}
}
// set last measure barline to normal or MuseScore will generate light-heavy EndBarline
// TODO, handle other tracks?
auto lm = _score->lastMeasure();
if (lm && lm->endBarLineType() == BarLineType::NORMAL) {
lm->setEndBarLineType(BarLineType::NORMAL, 0);
for (int staff = 0; staff < _score->nstaves(); staff++) {
lm->setEndBarLineType(BarLineType::NORMAL, staff * VOICES);
}
}

addError(checkAtEndElement(_e, "score-partwise"));
Expand Down

0 comments on commit 955984f

Please sign in to comment.