Undo selects an extra measure
Reported version
3.4
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
Pressing Undo with one or more measures selected, selects an extra measure which shows if you apply items from the palette on the same selection.
Select one or more measures
- In Palette -> Barlines, click on "Double barline" (any will do)
It applies the Double barline to the selected measures - Click Undo
- Click on "Double barline" again
Result: the item is applied to the originally selected measure(s), and one extra measure at the end.
Expected result: applied to only the originally selected measure
Notes
- Reproducible on Windows 10 and macOS 10.11
- The blue selection border does not show that it includes an extra bar. It only becomes apparent if a palette item is applied.
- This behaviour works with one or more bars selected, e.g. if you initially had 3 bars selected, undoing the action, will have the next action applied to 4 bars
- It applies to Clefs, key, time signatures, etc, e.g. the behaviour is not specific to barlines, but to the undo of a selected barline.
Fix version
3.5.0
Comments
I imagine the issue is that the barline belongs to the previous measure, but its tick is the same as that of the start of the next. Probably when we re-establish the selection on undo, we are not fully reproducing the exact condition of what is selected at that tick.
See https://github.com/musescore/MuseScore/pull/5721.
Fixed in branch master, commit 40191074a3
_fix #301174: Undo selects an extra measure
Resolves: https://musescore.org/en/node/301174.
When restoring a range selection that ends on the last tick of a measure, make sure that it is not extended to the first tick of the next measure._
Fixed in branch master, commit d9a7ffd95d
_Merge pull request #5721 from mattmcclinch/301174-restore-selection
fix #301174: Undo selects an extra measure_
Automatically closed -- issue fixed for 2 weeks with no activity.