stray start barline if add start barline after linebreak after double barline and then remove and readd the linebreak
In 2.0.3 3c7a69d and 2.1-dev 3d0347f:
- put a linebreak end of meas 1.
- drop double barline on meas 1.
- drop start repeat on meas 2.
- remove the linebreak.
- reapply the linebreak.
Observe that there is a stray start repeat barline at the end of measure with the line break:
Note I can't make this bug happen in 3.0 c231be2 because placing the start barline at the beginning of the measure after the linebreak will remove the double barline at the end of the measure before the linebreak. But actually I would prefer that adding the start repeat should not remove the double barline, because the double barline has a meaning that gets lost when removed. I believe that a barline should be able to be both a double barline and a start repeat barline, just displayed different dep
I'm sure this issue has been reported before...I've known about it for a while...but I don't know how to search for it.
Can also produce by:
- add different time sig to second measure
- add line break to end of first measure
- apply start repeat to second measure
- remove time signature
In that case, the start barline will appear at the end of the first line, while there won't be a start barline at the beginning of the second line:
Note that happens on 2.0.3 and 2.1, but not on 3.0, since there is some other bug with 3.0 where the start repeat is completely removed after deleting the timesig.
Comments
I wonder whether that is somehow related to #179366: Adding an end/start repeat barline to score adds an end repeat barline to parts
Maybe #120576: start repeat barline affected to wrong barline? Or #139676: repeat begin barline not showing always at start of stave in some parts?
Hi Jojo. I was actually making tests for #179366: Adding an end/start repeat barline to score adds an end repeat barline to parts when I noticed this, so I've filed it. This issue is not related to linking. But maybe there is some underlying cause...
(aside: in 2.0.3 & 2.1, applying a start repeat after a measure with an end repeat will create an end-start-repeat, but if apply an end repeat to measure before a measure with a start repeat then that simply turns the start repeat into an end repeat, which I don't like. However, I noticed that the behavior in 3.0 regarding this has been improved to my liking, so I won't bother fixing that for 2.1...)