Reducing actual duration of measure with text elements will corrupt measure
- Create or open the score barlinetext1.mscz where there are notes with text in the first measure like the:
- Right click first measure and in Measure Properties reduce the number of beats from 4 to only 1. Notice that the text elements are still present, but they should have been deleted. Also notice that there appears to be an extra measure:
However, interestingly according to debugger, that extra barline is actually somehow part of measure 1, so there is no actual new measure (just the illusion of new measure):
If save the score now:
Then when reopen, it seems MuseScore tries to "correct" some of this corruption by removing the extra barline...however the text elements still remain.
Expected behavior: the elements selected in red should be deleted. My recommended fix would be to have musescore delete *ALL* elements after the beat of the newly selected actual duration, before musescore reduces the measure duration.