Skip to content

Commit

Permalink
Merge pull request #3409 from lyrischesich/268713-double-start-repeat…
Browse files Browse the repository at this point in the history
…-after-reload

fix #268713: Start repeat barline added twice
  • Loading branch information
lasconic committed Jan 22, 2018
2 parents edfc7b2 + 11001b5 commit 04013b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/measure.cpp
Expand Up @@ -1870,7 +1870,7 @@ void Measure::read(XmlReader& e, int staffIdx)
else if (tag == "BarLine") {
BarLine* barLine = new BarLine(score());
barLine->setTrack(e.track());

barLine->read(e);
//
// StartRepeatBarLine: at rtick == 0, always BarLineType::START_REPEAT
// BarLine: in the middle of a measure, has no semantic
Expand All @@ -1895,9 +1895,8 @@ void Measure::read(XmlReader& e, int staffIdx)
if (barLine) {
segment = getSegmentR(st, t);
segment->add(barLine);
barLine->layout();
}
barLine->read(e);
barLine->layout();
}
else if (tag == "Chord") {
Chord* chord = new Chord(score());
Expand Down

0 comments on commit 04013b1

Please sign in to comment.