Crash when pasting over second voice when the left-over portion of the note spans over an invalid duration
Steps:
1- Open attached file;
2- In measure 1, left-click on the 1/8 D note (voice 1);
3- Holding down Shift, left-click on the 1/16 G note (voice 2; last note of measure 1);
4- Copy;
5- Select the 1/16 rest of voice 1 (measure 1);
6- Paste -> crash.
Windows 8.1, commit abf6441
Notes:
If the same steps are performed for measure 3, in which the 1/4 dotted note in voice 2 was substituted with 1/4 note tied to 1/8 note, there is no crash.
The crash is probably due to the fact that, when pasting, an invalid 5/16 duration is being assigned to the remaining (leading) part of the note already present in voice 2.
This bug is similar to #35851: Crash when pasting measures in another measure with different actual duration and #28506: Copy / paste corrupts next measure when the pasted note crosses the barline, with the difference that in this case the invalid single-block duration is assigned to the remaining part of a voice-2 note.
Attachment | Size |
---|---|
copypaste17bug.mscz | 1.72 KB |
Comments
Proposed PR:
https://github.com/musescore/MuseScore/pull/1462
Fixed in b6bdcde17d
Automatically closed -- issue fixed for 2 weeks with no activity.