Inability to delete one or more brackets
Current 3.0 dev. 8fb09aa/ Windows10
1) « Untitled » score
2) Select the first measure
3) From brackets palette: Double-click consecutively on each symbol : bracket, brace, square, line
- You observe the four symbols are hidden one by the another (except brace, but not optimal)
4) Right-click → Select → All similar elements
5) Ctrl + X
Result, unexpected : only a bracket is removed.
This is combined, secondly, to the inability to cut them individually (the only way is by undoing)
Note : I get some crashes by testing this issue, after some undos, and after re-begin the process in a different order (or not)
But by now only in a random and instable way.
Comments
Confirmed. The issue still exists.
Currently, it's worse with 9a9256c. You cannot remove any bracket.
1) Default "Untitled" score
2) Add a bracket (or brace etc.)
3) Select it -> Del
Result: nothing, the bracket remains in place.
The "last" issue (inability to remove 1 bracket) occurs on last June 8
Don't seem directly related but maybe a side effect of ? https://github.com/musescore/MuseScore/commit/2c012a23d45bed4b6f19fa897…
That commit on June 8 disallows the deletion of generated elements. Each staff maintains a list of bracket items, and brackets are generated from these lists, so an exception must be made to allow the deletion of brackets, even though they are generated elements. To allow for nested brackets, each bracket has a column property, and if this property does not match the bracket item’s position in its staff’s bracket list, then the bracket may not be able to be deleted, or the wrong bracket may be deleted instead.
I have noticed the following problems in the code:
Care should be taken to ensure that a bracket’s column property always matches its position in the bracket list. Clearly, no two bracket items in the same list should ever have the same column value, so a change made to one bracket’s column property may affect some or all other brackets in the same list.
Also, because of the way the staff creates and deletes bracket items as necessary, bracket items should not be pushed onto the undo stack, but must instead be obtained from their staff’s bracket list.
See fix #230311: Inability to delete one or more brackets #3732.
Fixed in branch master, commit 4b53934b96
fix #230311: Inability to delete one or more brackets
Fixed in branch master, commit 6d1b10f881
Merge pull request #3732 from mattmcclinch/230311-delete-brackets
fix #230311: Inability to delete one or more brackets
Automatically closed -- issue fixed for 2 weeks with no activity.
In reply to Auto close by System Message
I still observe this in 3.3.4.9066 in Windows 7. Import the attached XML and try to delete the brackets and braces. Workaround: Save as mscx, delete brackets using a text editor
Better open a new issue for that.
I agree with Jojo.
Your issue seems to be specific to MusicXML import, so it would be best to mention that. For that matter, it may be specific to a single MusicXML file. Your suggested workaround is fine; alternatively, you could delete the brackets and braces from the MusicXML file before importing it into MuseScore.