Skip to content

Commit

Permalink
Merge pull request #24251 from Jojo-Schmitz/brackets-crash
Browse files Browse the repository at this point in the history
Follow-up to #24211
  • Loading branch information
RomanPudashkin authored Aug 28, 2024
2 parents 56db772 + 8c2f9bf commit c1a582f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/dom/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,7 @@ void Score::adjustBracketsDel(size_t sidx, size_t eidx)
for (size_t staffIdx = 0; staffIdx < eidx; ++staffIdx) {
Staff* staff = m_staves[staffIdx];
std::vector<BracketItem*> brackets = staff->brackets(); // create copy because it's modified during loop
for (BracketItem* bi : staff->brackets()) {
for (BracketItem* bi : brackets) {
size_t span = bi->bracketSpan();
if ((span == 0) || ((staffIdx + span) <= sidx)) {
continue;
Expand Down

0 comments on commit c1a582f

Please sign in to comment.