"Dropping" end barline onto Multi-Measure rest should apply barline to *end* of multi-measure rest
Priority
P1 - High
Type
Functional
Severity
S3 - Major
Status
closed
Regression
No
Workaround
No
Project
If I start with a multi-measure rest:
and the "drop" a barline (e.g. end-repeat barline) onto it:
then what has happened is the barline is applied to the end of the first measure of the multi-measure rest.
But the expected behvavior is that the barline should be applied to end of the last measure of the multi-measure rest. Applying to the end is consistent with the (correct & desired) behavior of "dropping" a {Line|Page|System}-break onto a multi-measure rest. For example if I start with:
then after dropping a line break on that MMrest, I get:
on latest git master 176a6d7.
Fix version
3.1.0
Comments
Current behavior is different, barlines added to mmrests get ignored entirely.
In reply to (No subject) by Marc Sabatella
Actually, the barline is changed, but then it is immediately overwritten by the barline type of the last one of the measures "contained" inside the MMRest, which remains a normal barline, since only the barline of the MMRest object is changed in this case.
I think the proper way to deal with this is to link the barline of the last measures within the MMRest with the barline of the MMRest, probably here: https://github.com/musescore/MuseScore/blob/b18bf8add326e95db17b47333ed…
or maybe here: https://github.com/musescore/MuseScore/blob/b18bf8add326e95db17b47333ed…
so that they are both changed at the same time.
I quickly tried to add a link instruction on both places, and the behavior is correct, but I sometimes get a crash during undo/redo, so I think I made the linking wrong.
Linking is possible, but right now this doesn't happen at all, not for linked parts either. I've got a solution almost ready that solves this an other related problems without requiring barlines to be linked, as that seemed dangerous.
https://github.com/musescore/MuseScore/pull/4843
Fixed in branch master, commit 3c01059c4e
fix #280912, fix #102821: sync barlines between score/parts, mmrests
Automatically closed -- issue fixed for 2 weeks with no activity.