Skip to content

Commit

Permalink
fix #103646: Crash after copy-paste linked measures before a system c…
Browse files Browse the repository at this point in the history
…hange with multimeasure rests
  • Loading branch information
lasconic committed Mar 29, 2016
1 parent d61c334 commit 84aeb32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/layout.cpp
Expand Up @@ -2241,6 +2241,10 @@ bool Score::layoutSystem(qreal& minWidth, qreal systemWidth, bool isFirstSystem,
}
else if (curMeasure->type() == Element::Type::MEASURE) {
Measure* m = static_cast<Measure*>(curMeasure);
if (m->isMMRest()) { // make sure that measures below mm rest have no system
for (Measure* mi = m->mmRestFirst(); mi != m->mmRestLast(); mi = mi->nextMeasure())
mi->setSystem(nullptr);
}
m->createEndBarLines(); // TODO: type not set right here
if (isFirstMeasure) {
firstMeasure = m;
Expand Down

0 comments on commit 84aeb32

Please sign in to comment.