Skip to content

Commit

Permalink
fix #18732: removing instrument causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Nov 5, 2012
1 parent 4ef18b5 commit f3e542b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2453,15 +2453,12 @@ void Score::adjustBracketsDel(int sidx, int eidx)
continue;
if ((sidx >= staffIdx) && (eidx <= (staffIdx + span)))
undoChangeBracketSpan(staff, i, span - (eidx-sidx));
// else {
// qDebug("TODO: adjust brackets, span %d\n", span);
// }
}
int span = staff->barLineSpan();
if ((sidx >= staffIdx) && (eidx <= (staffIdx + span))) {
int newSpan = span - (eidx-sidx);
int newSpan = span - (eidx-sidx) + 1;
int lastSpannedStaffIdx = staffIdx + newSpan - 1;
undoChangeBarLineSpan(staff, newSpan, 0, (_staves[lastSpannedStaffIdx]->lines()-1)*2);
undoChangeBarLineSpan(staff, newSpan, 0, (_staves[lastSpannedStaffIdx]->lines()-1)*2);
}
}
}
Expand Down

0 comments on commit f3e542b

Please sign in to comment.