if single measure section at beginning of score followed by a section with an end repeat, then end repeat goes to start of score
Attached example repeat30:
| m1 | section_break | m2 | m3 :|
expected behavior: repeat list is m1, m2, m3, m2, m3
actual behavior on 2.0.2 and 52adf61: m1, m2, m3, m1, m2, m3
The repeat should go back to begining of m2, because there is section break at end of m1, but because m1 is a single measure at start of score, the for loop in jumpToStartRepeat has a condition to break if first measure. Fix is by moving the test for first measure to the bottom of the for loop.
I'm fixing with same PR as #73486: 1-measure repeat at end of section causes repeat list to continue afterwards because the fix is in the same little for loop in jumpToStartRepeat.
Attachment | Size |
---|---|
repeat30_single-measure-section-at-beginning-of-score-then-section-with-end-repeat.mscx | 4.49 KB |
Comments
Fixed in branch master, commit 7c6ad688d4
Merge pull request #2168 from ericfont/73486-73496-jumpToStartRepeat-evaluate-conditions-in-proper-order-also-ctests-j2
Fix #73486 Fix #73496 rewrite jumpToStartRepeat reorder conditions eval
Automatically closed -- issue fixed for 2 weeks with no activity.