Merge pull request #5058 from mattmcclinch/289552-pad-toggle

fix #289552: [Regression] Crash splitting multimeasure rest
This commit is contained in:
anatoly-os 2019-05-23 23:47:57 +02:00 committed by GitHub
commit 13a7201512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2859,10 +2859,11 @@ void Score::padToggle(Pad n)
if (cr && cr->isRest() && cr->measure()->isMMRest()) {
Measure* m = cr->measure()->mmRestFirst();
if (m)
cr = m->findChordRest(Fraction(0,1), 0);
cr = m->findChordRest(m->tick(), 0);
}
crs.push_back(cr);
if (cr)
crs.push_back(cr);
}
else {
const auto elements = selection().uniqueElements();