if single measure section at beginning of score followed by a section with an end repeat, then end repeat goes to start of score

• Aug 15, 2015 - 11:13
Type
Functional
Severity
3
Status
closed
Project

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.


Comments

Severity

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