Skip to content

Fix crash on move instrument above system marking #29115

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

Conversation

mike-spa
Copy link
Contributor

@mike-spa mike-spa commented Aug 6, 2025

Resolves: #29045

This PR should fix all the weird combination of cases one can get when moving not just the bottom system object layer but also the instruments around the bottom layer.

There is also some refactoring, namely the method Score::isSystemObjectStaff(Staff*) has become Staff::isSystemObjectsStaff(), which is simpler and more idiomatic. But most importantly, I've realized that it's not a good idea to model the "system objects below the bottom staff" option as the property of an individual staff, cause we'd need to constantly set/unset it as we move instruments at the bottom even though we're not touching the bottom SO layer. It's better to model the option as a property of the score itself, i.e. as a style.

@mike-spa mike-spa requested a review from its-not-nice August 6, 2025 14:01
@mike-spa mike-spa force-pushed the fixCrashOnMoveInstrumentAboveSystemMarking branch from 2257e87 to c91ea14 Compare August 7, 2025 15:08
@mike-spa mike-spa force-pushed the fixCrashOnMoveInstrumentAboveSystemMarking branch from c91ea14 to 1ebfa42 Compare August 8, 2025 07:24
@mike-spa mike-spa force-pushed the fixCrashOnMoveInstrumentAboveSystemMarking branch from 1ebfa42 to c836e5d Compare August 8, 2025 15:37
@RomanPudashkin RomanPudashkin merged commit 36f9c17 into musescore:master Aug 13, 2025
13 checks passed
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 when moving an instrument below a system marking position in Layout panel
3 participants