Skip to content

Fix crash on removing bottom parentheses#32379

Merged
miiizen merged 11 commits intomusescore:4.7from
miiizen:47ParensCrash
Mar 2, 2026
Merged

Fix crash on removing bottom parentheses#32379
miiizen merged 11 commits intomusescore:4.7from
miiizen:47ParensCrash

Conversation

@miiizen
Copy link
Contributor

@miiizen miiizen commented Feb 25, 2026

Resolves: #32367

At some point the order of the notes changed.

@davidstephengrant
Copy link
Contributor

I'm still seeing the issue, but now apparently involving the top note.

Screen.Recording.2026-02-25.123304.mp4

@miiizen
Copy link
Contributor Author

miiizen commented Feb 26, 2026

@davidstephengrant this is ready for another review!

@davidstephengrant
Copy link
Contributor

@miiizen Tested and approved on Windows 11 and Ubuntu 24.04.4 LTS.

Previously, whenever this vector was modified addresses to its items could change. As we refer to these addresses in EditChord::removeChordParentheses, we need them to be stable.
miiizen added 4 commits March 2, 2026 08:54
The commands should do 2 things - forward requests to add/remove to chords and own NoteParenthesisInfo objects when they're on the undo stack.
@miiizen miiizen force-pushed the 47ParensCrash branch 2 times, most recently from 2d7ebfd to 671e432 Compare March 2, 2026 09:07
@davidstephengrant
Copy link
Contributor

@miiizen Tested and approved on Ubuntu 24.04.4 LTS.

@miiizen miiizen merged commit 934b7a3 into musescore:4.7 Mar 2, 2026
12 checks passed
miiizen added a commit to miiizen/MuseScore that referenced this pull request Mar 3, 2026
Fix crash on removing bottom parentheses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing parentheses from a subset of notes in a parenthesized chord may cause the score to draw incorrectly or crash

3 participants