Merge pull request #5058 from mattmcclinch/289552-pad-toggle
fix #289552: [Regression] Crash splitting multimeasure rest
This commit is contained in:
commit
13a7201512
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue