Skip to content

Commit

Permalink
Merge pull request #5130 from MarcSabatella/290827-barline-mmrest
Browse files Browse the repository at this point in the history
fix #290827: barline not added to mmrest
  • Loading branch information
dmitrio95 committed Jun 16, 2019
2 parents f1233b7 + dba1e42 commit f021288
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 f021288

Please sign in to comment.