Bad key change after undoing the enabling of multimeasure rests
Reported version
3.1
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
Steps to reproduce:
- Default “Untitled” score.
- Add a key signature to measure 5.
- Press M.
- Undo.
The key has been changed back to C Major, but there is a key signature in measure 5.
Fix version
3.3.3
Comments
This is because when the key signature was added to the multimeasure rest, its generated flag was not set to true. So when the operation is undone, this line of code gets executed, which is not what is desired, since at this point we are only trying to undo the enabling of multimeasure rests. To fix this, we simply need to set the key signature’s generated flag to true before pushing the AddElement operation to the undo stack. See https://github.com/musescore/MuseScore/pull/5147.
Fixed in branch master, commit f4e78514d6
fix #291053: Bad key change after undoing the enabling of multimeasure rests
Fixed in branch master, commit e6e1f209fd
_Merge pull request #5147 from mattmcclinch/291053-keysig-mmrests
fix #291053: Bad key change after undoing the enabling of multimeasure rests_
Automatically closed -- issue fixed for 2 weeks with no activity.