Skip to content

Commit

Permalink
Fix crash when there is no prev repeat segment
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Mar 10, 2025
1 parent 28c68b6 commit ce5e575
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 ce5e575

Please sign in to comment.