initial barline vanishes when changing linetype

• Mar 14, 2019 - 21:23
Reported version
3.0
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
Tags

in msc3 i am unable to set a double bar line at the beginning of a staff
in msc2 it worked
in msc3 the barline vanishes when i want to change from single to double barline.
in fact it vanishes on the first staff

1) Format/Style/Barlines: "barline at beginning of single/multiple staff" : enable
2) change the barline-style in inspector to any other type, eg.: double barline
3) the barline in the first staff vanishes.
4) if i klick "undo" the barline reappears in default-style as single barline.

I can get around it, by adding another empty an invisible staff/instrument above,
or i can safe and reopen it, unless I want to change the style of an initial barline again.

Attachment Size
testbarline.mscz 16.23 KB
msc3_dbline.jpg 94.42 KB

Comments

Priority P1 - High

In general, it seems it always works for all but the first staff. That is, in a score with 9 staves, it works for staves 2-9, etc. And it is indeed fixed on save/reload.

The cause seems simple, we are actually adding a new barline to the top staff because we mistakenly think there isn't one already there, and then we are creating it incorrectly. I don't see any good reason for the code that is doing this to even be there; changing initial barline should not ever result in adding new ones as far as I am concerned. So, will submit PR soon, looking to see if there are other barline issues I can easily grab at the same time.

Fix version
3.1.0