Merge pull request #5314 from mattmcclinch/294120-mmr-timesig

fix #294120: Insert measures in mmrest mode leads to corruption/crash
This commit is contained in:
anatoly-os 2019-09-17 11:05:43 +02:00 committed by GitHub
commit 9a418f6c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1828,6 +1828,7 @@ void Score::createMMRest(Measure* m, Measure* lm, const Fraction& len)
mmr->setTick(m->tick());
undo(new ChangeMMRest(m, mmr));
}
mmr->setTimesig(m->timesig());
mmr->setPageBreak(lm->pageBreak());
mmr->setLineBreak(lm->lineBreak());
mmr->setMMRestCount(n);