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 #317747: measure number appears after section break #7569

Merged
merged 1 commit into from Mar 5, 2021

Conversation

MarcSabatella
Copy link
Contributor

Resolves: https://musescore.org/en/node/317747#comment-1063687

In implementing a bunch of related fixes for the behavior of
section breaks followed by frames or breaks on frames*
in #7026,
I introduced a new function designed to find relevant section breaks.
However, I missed one opportunity to use this function
(even though I left a TODO for this),
and in one place where I did call the function,
I neglected to actually use its return value.
As a result, in one situation where it previously worked
to place the section break on a frame
but failed when placing the frame after the section break,
my change merely reversed these two cases.

This commit fixes those two oversights.
In these two places where the code previously assumed
we had a MeasureBase that made sense to check for section breaks,
we now call findPotentialSectionBreak() to look backwards.
This ensures we don't miss breaks on or before frames
in these two places in the code.

Resolves: https://musescore.org/en/node/317747#comment-1063687

In implementing a bunch of related fixes for the behavior of
section breaks followed by frames or breaks *on* frames*
in musescore#7026,
I introduced a new function designed to find relevant section breaks.
However, I missed one opportunity to use this function
(even though I left a TODO for this),
and in one place where I did call the function,
I neglected to actually use its return value.
As a result, in one situation where it previously worked
to place the section break on a frame
but failed when placing the frame after the section break,
my change merely reversed these two cases.

This commit fixes those two oversights.
In these two places where the code previously assumed
we had a MeasureBase that made sense to check for section breaks,
we now call findPotentialSectionBreak() to look backwards.
This ensures we don't miss breaks on or before frames
in these two places in the code.
@Jojo-Schmitz
Copy link
Contributor

counterpart got merged to master

@vpereverzev vpereverzev closed this Mar 4, 2021
@Jojo-Schmitz
Copy link
Contributor

needed in 3.x too though

@vpereverzev vpereverzev reopened this Mar 4, 2021
@vpereverzev vpereverzev merged commit 5edf0d5 into musescore:3.x Mar 5, 2021
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.

None yet

3 participants