Skip to content

Commit

Permalink
fix #90766: bad layout with hbox at end of system followed by mmrest
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella authored and lasconic committed Jan 12, 2016
1 parent 647c416 commit 29fb9fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2826,6 +2826,14 @@ QList<System*> Score::layoutSystemRow(qreal rowWidth, bool isFirstSystem, bool u
curMeasure = curMeasure->prev();
else
curMeasure = last();
// skip to beginning of mmrest
if (curMeasure && curMeasure->isMeasure() && styleB(StyleIdx::createMultiMeasureRests)) {
Measure* m = static_cast<Measure*>(curMeasure);
while (m && m->mmRestCount() < 0)
m = m->prevMeasure();
if (m && m->hasMMRest())
curMeasure = m->mmRest();
}
}
firstInRow = false;
}
Expand Down

0 comments on commit 29fb9fa

Please sign in to comment.