Skip to content

Commit

Permalink
Fix #317424: Missing tie in part after paste
Browse files Browse the repository at this point in the history
Resolves: https://musescore.org/en/node/317424.

When a tie is created as a result of pasting a note that is too long to fit in the measure, ties must be added to the corresponding notes in any and all linked scores. This is accomplished by using the undoAddElement() function to add the tie, rather than simply using setTieFor() and setTieBack() on notes in the current score.
  • Loading branch information
mattmcclinch authored and vpereverzev committed Mar 10, 2021
1 parent 4a06420 commit f30fef1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libmscore/paste.cpp
Expand Up @@ -649,8 +649,7 @@ void Score::pasteChordRest(ChordRest* cr, const Fraction& t, const Interval& src
nl2[i]->setTieFor(nl1[i]->tieFor());
tie2->setStartNote(nl2[i]);
}
nl1[i]->setTieFor(tie);
nl2[i]->setTieBack(tie);
undoAddElement(tie);
}
c = c2;
firstpart = false;
Expand Down

0 comments on commit f30fef1

Please sign in to comment.