Skip to content

Commit

Permalink
Merge pull request #27006 from miiizen/port-ll-crash
Browse files Browse the repository at this point in the history
4.5 port - Fix crash when there is no prev repeat segment
  • Loading branch information
RomanPudashkin authored Mar 10, 2025
2 parents 28c68b6 + ce5e575 commit 9ff8248
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 9ff8248

Please sign in to comment.