Reducing actual duration of measure with text elements will corrupt measure
Replication steps:
- 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:
barlinetext3.mscz
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.
Comments
Thank you for the very well written report !
Fixed in branch 2.0.4, commit 9680d9cd58
fix #106021: Reducing actual duration of measure with text elements will corrupt measure
Fixed in branch master, commit 9db7d2207c
fix #106021: Reducing actual duration of measure with text elements will corrupt measure
Automatically closed -- issue fixed for 2 weeks with no activity.