Skip to content
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

Fix crash when there is no previous repeat segment #27005

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Mar 10, 2025

Resolves: #26980
The method is looking for the previous segment in repeatList. We should start the loop at the second item as the first will obviously not have a previous segment. If repeatList is only 1 item long, repeatList.begin() + 1 will be repeatList.end()

@miiizen miiizen requested a review from oktophonie March 10, 2025 08:30
@miiizen miiizen changed the title Fix crash when there is no prev repeat segment Fix crash when there is no previous repeat segment Mar 10, 2025
@Jojo-Schmitz
Copy link
Contributor

Confirmed to fix the crash

@oktophonie oktophonie requested a review from mike-spa March 10, 2025 09:35
@mike-spa mike-spa merged commit 3a48e31 into musescore:master Mar 10, 2025
11 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 adding extender line not connected to anything
4 participants