Corrupt tie created on paste of tied note that requires additional tie

• Feb 20, 2020 - 21:32
Reported version
3.4
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Reported in https://musescore.org/en/node/301221

The trigger seems to be, the source has to contain a tie, and it has to be pasted into a location in which the first tied note spans a barline and thus requires an additional tie. So:

1) new score
2) measure 1 note input
3) 6 0 5 0 G + (creates quarter note G on beat 4, tied into quarter note in next measure)
4) select and copy the two tied G's
5) measure 3 note input
6) 6 0 5 0 4 0 (creates half rest, quarter rest, two eighth rests)
7) select second eighth rest
8) paste

Result: as shown, the tie incorrectly skips a note:

paste-tie.png


Comments

Status PR created fixed

Fixed in branch master, commit 2341f8192b

_fix #301414: Corrupt tie created on paste of tied note that requires additional tie

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

During paste, if a note has a tie, that tie is remembered as a pending connector which is later added to the score when XmlReader::checkConnectors() is called. If a note is too long to fit in the measure, it is split up into a series of tied notes, but the pending tie needs to be adjusted to begin at the last tied note in the series, instead of at the original note._

Fix version
3.5.0