fix #287102: Remove Selected Range (Timewise Delete) of a partial note in another voice leads to crash.
This commit is contained in:
parent
773c5019ef
commit
9a2249744f
1 changed files with 2 additions and 2 deletions
|
@ -572,7 +572,7 @@ void Score::createCRSequence(const Fraction& f, ChordRest* cr, const Fraction& t
|
|||
ChordRest* ncr = toChordRest(cr->clone());
|
||||
ncr->setDurationType(d);
|
||||
ncr->setTicks(d.fraction());
|
||||
|
||||
undoAddCR(ncr, measure, measure->tick() + tick);
|
||||
if (cr->isChord() && ocr) {
|
||||
Chord* nc = toChord(ncr);
|
||||
Chord* oc = toChord(ocr);
|
||||
|
@ -588,7 +588,7 @@ void Score::createCRSequence(const Fraction& f, ChordRest* cr, const Fraction& t
|
|||
undoAddElement(tie);
|
||||
}
|
||||
}
|
||||
undoAddCR(ncr, measure, tick);
|
||||
|
||||
tick += ncr->actualTicks();
|
||||
ocr = ncr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue