Barlines not spanning stave in added piano stave

• Jun 12, 2019 - 22:23
Reported version
3.1
Priority
P2 - Medium
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
Yes
Workaround
Yes
Project

When adding a piano stave to a pre-existing stave none of the barlines - whatever the type whether double, final, dotted, dashed or repeat barlines - span down from the G clef to the F clef.

To re-create
1. Either use the default My_First_Score.mscx file that comes up on start up or any other open MuseScore file.
2. Open the Instruments dialogue box via Edit -> Instruments...
3. Choose Piano under Keyboards and click to Add and then OK
4. Observe the absence of the spanned barlines
Screenshot_Barlines_not_spanning_2019-06-12 22-21-58.png
Barlines should span the great stave of the piano. This is not a problem in 2.3.2


Comments

I believe the culprit is a change of barlineSpan, in MuseScore 2 it was the number of how many staves to span, but in MuseScore 3 turned into a boolean, whether to span to the next staff or not?

Actually the <barLineSpan>1</barLineSpan> is not written to the score.

Strangely this only happens when adding a Piano to a score after it has been created already, on a new score you can add as many pianos as you like and they all have their staves connected by barlines