Skip to content

Commit

Permalink
fix #290827: barline not added to mmrest
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jun 16, 2019
1 parent f1233b7 commit dba1e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void undoChangeBarLineType(BarLine* bl, BarLineType barType, bool allStav
m2 = bl->masterScore()->tick2measure(m2->tick());
if (!m2)
return; // should never happen
segment = m2->undoGetSegmentR(segment->segmentType(), segment->rtick());
segment = m2->undoGetSegment(segment->segmentType(), segment->tick());
}
const std::vector<Element*>& elist = allStaves ? segment->elist() : std::vector<Element*> { bl };
for (Element* e : elist) {
Expand Down

0 comments on commit dba1e42

Please sign in to comment.