Fix #301768: Unexpected tieing behaviour

Resolves: https://musescore.org/en/node/301768.

Rebased version of #5777
This commit is contained in:
Matt McClinch 2021-04-11 12:04:53 +02:00 committed by Igor Korsukov
parent 69fd98518a
commit f198f8829b

View file

@ -1681,7 +1681,11 @@ void Score::cmdAddTie(bool addToChord)
for (Note* note : noteList) {
if (note->tieFor()) {
qDebug("cmdAddTie: note %p has already tie? noteFor: %p", note, note->tieFor());
continue;
if (addToChord) {
continue;
} else {
undoRemoveElement(note->tieFor());
}
}
if (noteEntryMode()) {