Grace note value change does not propagate to linked staves and is not properly undoable
1. Open attached score (produced in 1.3).
2. Click on notehead of grace note.
3. Change value (e.g. 16th).
4. Undo.
Expected result: The value is 8th.
Actual result: The value is 16th.
Note: Only affects pitched and drumset staves. It is also reproducible in 2.0 scores.
Using MuseScore 2.0 Nightly Build (2bb5183) - Mac 10.7.5.
Attachment | Size |
---|---|
Cannot undo grace note value change on pitched and drumset stave.mscz | 1.51 KB |
Comments
Is this a duplicate of #24190: Undo doesn't initially draw former value of grace note? And in particular, do you see the value restored after Ctrl+A?
It is indeed restored after 'Select All'.
I will mark the other as a duplicate.
Using MuseScore 2.0 Nightly Build 9b2266e - Mac 10.7.5.
I discovered that a change to grace note duration does not propagate to linked staves/parts either, for the same underlying reason - the duration change was being performed directly rather than using undoChangeChordRestLen(). Presumably that is because the latter function was not grace-note-aware, but I have modified it so it is, leveraging the same code I added to support ties to/from grace notes (see #6535: Impossible to tie to a grace note).
PR with this code: https://github.com/musescore/MuseScore/pull/1487
Fixed along with #6535: Impossible to tie to a grace note
Automatically closed -- issue fixed for 2 weeks with no activity.