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 #289693: correct calculation of system fill #5066

Merged
merged 1 commit into from
May 26, 2019

Conversation

MarcSabatella
Copy link
Contributor

@MarcSabatella MarcSabatella commented May 25, 2019

See https://musescore.org/en/node/289693

This started with #4949, where I fixed what was undeniably a bug in the system distance calculation, where we were inexplicably striving for consistent distance between systems top to top. Meaning if you had page where some systems had only one staff and others had two, you'd get more space below the one-staff systems. This was wrong, previous versions of MuseScore didn't do that, published music doesn't do that, so I solved that problem by essentially removing that code (which uncovered another problem I fixed just before RC).

However, as I started doing some work on spacers for unrelated reasons, I realized my change had a very bad effect in that the effect of spacers is no longer as predictable as it should be. After some investigation/debugging, I now realize that the code I removed was actually almost correct to begin with. It just should have been doing the exact same calculation, but instead of equalizing the distance from top to top, it should have been equalizing the distance from bottom to top. Meaning, instead of removing that code, all I really should have done is subtract off the system height at a couple of places in the calculation.

So that is what this PR does. It reinstates the original code (with better comments) but with that small correction, and now it works as I believe it should have all along. The changes are thus actually smaller than they appear, some of it is just removing some of the stuff I had added in an effort to make the original code something that would respond to a style setting.

@anatoly-os anatoly-os merged commit 60ff706 into musescore:master May 26, 2019
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