Skip to content

Commit

Permalink
fix #285858: fix assertion failure on MM rests disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Mar 13, 2019
1 parent dd3e685 commit b063dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void System::clear()

void System::appendMeasure(MeasureBase* mb)
{
Q_ASSERT(!mb->isMeasure() || !toMeasure(mb)->hasMMRest());
Q_ASSERT(!mb->isMeasure() || !(score()->styleB(Sid::createMultiMeasureRests) && toMeasure(mb)->hasMMRest()));
mb->setSystem(this);
ml.push_back(mb);
}
Expand Down Expand Up @@ -929,7 +929,7 @@ MeasureBase* System::nextMeasure(const MeasureBase* m) const
if (m == ml.back())
return 0;
MeasureBase* nm = m->next();
if (nm->isMeasure() && toMeasure(nm)->hasMMRest())
if (nm->isMeasure() && score()->styleB(Sid::createMultiMeasureRests) && toMeasure(nm)->hasMMRest())
nm = toMeasure(nm)->mmRest();
return nm;
}
Expand Down

0 comments on commit b063dea

Please sign in to comment.