Skip to content

Fix missing key signature after repeats#32368

Merged
miiizen merged 2 commits intomusescore:4.7from
miiizen:32177-ksAfterRepeat
Mar 2, 2026
Merged

Fix missing key signature after repeats#32368
miiizen merged 2 commits intomusescore:4.7from
miiizen:32177-ksAfterRepeat

Conversation

@miiizen
Copy link
Contributor

@miiizen miiizen commented Feb 24, 2026

Resolves: #32177

This is a bit of an ugly solution, to be improved in future. Key signature layout now relies on the previous measure's hasCourtesyKeySig flag. Currently, this flag is updated in MeasureLayout::removeSystemTrailer & MeasureLayout::setRepeatCourtesiesAndParens. We need to lay out the key signatures this will affect afterwards.

@davidstephengrant
Copy link
Contributor

The all-naturals key signature change after the repeat barline is still going missing if there is a courtesy directly before the repeat.

4.6.5:

Screenshot 2026-02-25 131644

This PR:

Screenshot 2026-02-25 131656

@miiizen
Copy link
Contributor Author

miiizen commented Feb 26, 2026

@davidstephengrant ready for another review!

@davidstephengrant
Copy link
Contributor

@miiizen Tested and approved on Windows 11.

miiizen added 2 commits March 2, 2026 11:04
This is a bit of an ugly solution, to be improved in future
@miiizen miiizen force-pushed the 32177-ksAfterRepeat branch from 4964c3e to 2a96281 Compare March 2, 2026 11:04
@miiizen miiizen merged commit 3f727e9 into musescore:4.7 Mar 2, 2026
11 of 12 checks passed
miiizen added a commit to miiizen/MuseScore that referenced this pull request Mar 3, 2026
@miiizen miiizen mentioned this pull request Mar 3, 2026
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.

All-natural key signature changes may fail to draw after repeat barlines

3 participants