Skip to content

Fix crash on clear & undo #27630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged

Fix crash on clear & undo #27630

merged 1 commit into from
Apr 11, 2025

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Apr 10, 2025

Resolves: #27618
This was caused by starting and ending an undo command where it wasn't necessary (as one would always be in progress). Ending the command meant that the other changes (removing the note in this case) weren't added to the undo stack.

The PR also fixes another crash caused by following the reproduction steps in the issue then repeating steps 2 & 3:
2. Add C to 2nd measure
3. Add tie to C note in 1st measure

This was caused by another dangling pointer.

@DmitryArefiev DmitryArefiev removed their request for review April 10, 2025 16:14
@DmitryArefiev DmitryArefiev self-assigned this Apr 10, 2025
@DmitryArefiev
Copy link
Contributor

Tested #27618 on Win10, Mac13.7.2, LinuxUbuntu24.04.2 LTS - FIXED

@mike-spa mike-spa merged commit 77b6f6f into musescore:master Apr 11, 2025
11 checks passed
@miiizen miiizen mentioned this pull request Apr 11, 2025
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.

Crash after adding partial tie, clear measure and Undo
4 participants