Skip to content

Commit

Permalink
Merge pull request #27005 from miiizen/26980-lyrics-crash
Browse files Browse the repository at this point in the history
Fix crash when there is no previous repeat segment
  • Loading branch information
mike-spa authored Mar 10, 2025
2 parents f32615b + 49741f9 commit 3a48e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/dom/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ std::vector<Measure*> findPreviousRepeatMeasures(const Measure* measure)

std::vector<Measure*> measures;

for (auto it = repeatList.begin(); it != repeatList.end(); it++) {
for (auto it = repeatList.begin() + 1; it != repeatList.end(); it++) {
const RepeatSegment* rs = *it;
const auto prevSegIt = std::prev(it);
if (!rs->startsWithMeasure(masterMeasure) || prevSegIt == repeatList.end()) {
Expand Down

0 comments on commit 3a48e31

Please sign in to comment.