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 #51271: remaining issues with initial barline #1937

Merged
merged 1 commit into from
Apr 11, 2015

Conversation

MarcSabatella
Copy link
Contributor

The initial barline code had mostly been working fine, but was broken with the change to support the new hideSystemBarLine flag. My fix here preserves the behavior of this flag but fixes the cases of 1-line staves and cases where the top visible staff has a spacer up to an invisible staff above. So this also fixes https://musescore.org/en/node/53856.

@wschweer , @lasconic : I do believe my fix works, and I tested all sorts of combinations of 1-line staves, hidden staves, staves with hideSystemBarLine set, etc. But you might want to look and sure I didn't miss something.

I also included a fix for one other glitch with initial barlines : on system layout, if the top staff is 1-line, we explicit set the span from to the right value, but if you later change the number of lines or add a staff above this one, we didn't ever reset it to the default value, so you end up with system barlines extended 2sp above the system (fixed on reload). I just added code to the system layout to explicitly set the spanFrom to 0 if the top visible staff is not a 1-line staff.

lasconic added a commit that referenced this pull request Apr 11, 2015
fix #51271: remaining issues with initial barline
@lasconic lasconic merged commit 922833d into musescore:master Apr 11, 2015
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

2 participants