Skip to content

Commit

Permalink
Fix #312147 - Stemless measures not propagated to parts
Browse files Browse the repository at this point in the history
cloneStaves now also clones the "stemless" measure property.
  • Loading branch information
njvdberg authored and vpereverzev committed Oct 26, 2020
1 parent 1d81510 commit 7cfb155
Show file tree
Hide file tree
Showing 4 changed files with 1,492 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmscore/excerpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ void Excerpt::cloneStaves(Score* oscore, Score* score, const QList<int>& map, QM
nm->setNo(m->no());
nm->setNoOffset(m->noOffset());
nm->setBreakMultiMeasureRest(m->breakMultiMeasureRest());

for (int dstStaffIdx = 0; dstStaffIdx < map.size(); ++dstStaffIdx) {
nm->setStaffStemless(dstStaffIdx, m->stemless(map[dstStaffIdx]));
}

//TODO nm->setEndBarLineType(
// m->endBarLineType(),
// m->endBarLineGenerated(),
Expand Down
Loading

0 comments on commit 7cfb155

Please sign in to comment.