2.0 First barline offset when using "staff spacer up" icon if top stave hidden
Drop a "staff spacer up" on the first measure, top staff, of a score. The initial barline will drop down, and will continue to go down as you adjust the spacer height. A save and reload doesn't fix this. See attached image:
Attachment | Size |
---|---|
sp01.png | 10.24 KB |
Comments
I can't reproduce this. I tried a piano score as your appears tobe, with and without the additional spacer shown in your image, with and without a title frame. In no case did the spacer have that effect (with title frame, it had *no* effect, which is probably a bug too, albeit a rather minor one). I also tried adding notes & grace notes in case that was relevant.
Can you post the specific score and precise steps to reproduce?
Aha! I'll bet you have an invisible staff above the staves shown - I can reproduce in that case...
Yes, I did! Forgot about that, sorry.
I kind of stumbled on the code that is probably responsible for this, while looking into #51721: Staff miscentered vertically when set to 1 line musescore 2.0. The system initial barline is also drawn incorrectly if the top staff has only one line. I *think* the relevant code for both issues is here:
https://github.com/musescore/MuseScore/blob/master/libmscore/barline.cp…
I don't expect to get anywhere with it tonight.
Indeed, the same fix applies to both bugs:
https://github.com/musescore/MuseScore/pull/1937
PR merged for 2.0 branch and master.
Automatically closed -- issue fixed for 2 weeks with no activity.