Skip to content

Commit

Permalink
fix #287102: Remove Selected Range (Timewise Delete) of a partial not…
Browse files Browse the repository at this point in the history
…e in another voice leads to crash.
  • Loading branch information
songchaow committed Apr 5, 2019
1 parent 773c501 commit 9a22497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/cmd.cpp
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down

0 comments on commit 9a22497

Please sign in to comment.