Skip to content

Commit

Permalink
fix #287432: Key signature appears in multimeasure rest after being d…
Browse files Browse the repository at this point in the history
…eleted from underlying measure
  • Loading branch information
mattmcclinch committed Jun 17, 2019
1 parent 21cac7b commit 2975006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1820,15 +1820,16 @@ void Score::createMMRest(Measure* m, Measure* lm, const Fraction& len)
if (s)
s->setRtick(len);
}
mmr->removeSystemTrailer();
}
else {
mmr = new Measure(this);
mmr->setTicks(len);
mmr->setTick(m->tick());
mmr->setPageBreak(lm->pageBreak());
mmr->setLineBreak(lm->lineBreak());
undo(new ChangeMMRest(m, mmr));
}
mmr->setPageBreak(lm->pageBreak());
mmr->setLineBreak(lm->lineBreak());
mmr->setMMRestCount(n);
mmr->setNo(m->no());

Expand Down
2 changes: 1 addition & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4011,7 +4011,7 @@ void Measure::removeSystemTrailer()
changed = true;
}
setTrailer(false);
if (changed)
if (system() && changed)
computeMinWidth();
}

Expand Down

0 comments on commit 2975006

Please sign in to comment.