stray start barline if add start barline after linebreak after double barline and then remove and readd the linebreak

• Mar 6, 2017 - 21:25
Reported version
2.1
Type
Functional
Severity
S4 - Minor
Status
active
Project

In 2.0.3 3c7a69d and 2.1-dev 3d0347f:

  1. put a linebreak end of meas 1.
  2. drop double barline on meas 1.
  3. drop start repeat on meas 2.
  4. remove the linebreak.
  5. reapply the linebreak.

Observe that there is a stray start repeat barline at the end of measure with the line break:

result-start-barline-at-end-of-first-line-and-start-of-next-line.png

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:

  1. add different time sig to second measure
  2. add line break to end of first measure
  3. apply start repeat to second measure
  4. 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:
result-start-barline-at-end-of-first-line.png
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

Title stray start repeat barline if add start repeat line after linebreak after double barline and then remove and readd the linebreak stray start barline if add start barline after linebreak after double barline and then remove and readd the linebreak

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...)