I can confirm that exporting a single measure from MuseScore with start and end repeats and then reimporting it causes the start repeat to be removed (and the end repeat is displayed too far to the right). Thanks. m
My students suggest that it may only be a problem in the Windows build of version 1.2 and only if the barline style for the opening repeat is not set to "heavy-light".
During the MusicXML import, the managing of measures only expected measures as start or end of repeat but not both.
The musescore API is able to manage measures with start and end repeat bounderies.
During the second XML parsing, during measure parsing, I initialized the measure repeat flag to REPEAT::NONE and during the barline parsing, I update the repeat status by adding the property with measure->setRepeatFlag() in place of overloading the current status using measure->setRepeatFlags()
Comments
I can confirm that exporting a single measure from MuseScore with start and end repeats and then reimporting it causes the start repeat to be removed (and the end repeat is displayed too far to the right). Thanks. m
My students suggest that it may only be a problem in the Windows build of version 1.2 and only if the barline style for the opening repeat is not set to "heavy-light".
A patch is available on https://github.com/musescore/MuseScore/pull/2309
or https://github.com/pcolot01/MuseScore/tree/14884-singlemeasurerepeat
During the MusicXML import, the managing of measures only expected measures as start or end of repeat but not both.
The musescore API is able to manage measures with start and end repeat bounderies.
During the second XML parsing, during measure parsing, I initialized the measure repeat flag to REPEAT::NONE and during the barline parsing, I update the repeat status by adding the property with measure->setRepeatFlag() in place of overloading the current status using measure->setRepeatFlags()
Fixed in branch master, commit 9c194d5ae7
fix #14884 repeat start or repeat end on single measure is correctly imported from MusicXML files
Fixed in branch master, commit fee60c2c23
Merge pull request #2309 from pcolot01/14884-singlemeasurerepeat
fix #14884 repeat start or repeat end on single measure is correctly …
Fixed in branch 2.0.3, commit 20bbe1c34a
fix #14884 repeat start or repeat end on single measure is correctly imported from MusicXML files
Automatically closed -- issue fixed for 2 weeks with no activity.