Missing barline with a horizontal frame followed by start repeat

• Oct 20, 2019 - 16:06
Reported version
3.2
Type
Graphical (UI)
Frequency
Many
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

1) Insert a horizontal frame untile the page border, in order to flip the next bar to the staff below;
2) Insert a "start ritornello" barline at the first measure of the staff under the frame.

Problem: there's no barline at the end of the prevoius bar (before the horizontal frame).
If there's no riturnel in the second measure, the barline is visible.
The problem persist after previewing or printing.
I attach a mscz file and a screenshot.

Thanks

bug_barline.mscz

Schermata 2019-10-02 alle 01.01.57.png


Comments

Status PR created fixed

Fixed in branch master, commit eb6de76dbc

_fix #295892: barline not displayed before horizontal frame followed by start repeat

Resolves: https://musescore.org/en/node/295892

If a measure is followed by a horizontal frame and then a measure with a start repeat,
the end barline of the first measure is not displayed.
This is because we are optiizing that away thinking it won't be needed
because we will simply use the start repeat of the next measure.
This would be true if not for the frame.
So I simply added a check to make sure the next measure is the same as the next measurebase,
and clarified the comments._

Fix version
3.4.0