Skip to content

Commit

Permalink
Fix #310775 - Changing voice of only note with grace notes leads to c…
Browse files Browse the repository at this point in the history
…rash
  • Loading branch information
njvdberg committed Nov 4, 2020
1 parent c2acd39 commit d50b5f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/score.cpp
Expand Up @@ -4819,7 +4819,8 @@ void Score::changeVoice(int voice)
r->setTuplet(chord->tuplet());
r->setParent(s);
// if there were grace notes, move them
for (Chord* gc : chord->graceNotes()) {
while (!chord->graceNotes().empty()) {
Chord* gc = chord->graceNotes().first();
Chord* ngc = new Chord(*gc);
undoRemoveElement(gc);
ngc->setParent(dstChord);
Expand Down

0 comments on commit d50b5f5

Please sign in to comment.