Skip to content

Commit

Permalink
Fix crash on deleting "system object" staff
Browse files Browse the repository at this point in the history
correction
  • Loading branch information
mike-spa authored and RomanPudashkin committed Jan 12, 2023
1 parent 23415d5 commit 7273044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engraving/libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5144,6 +5144,8 @@ void Score::undoRemoveStaff(Staff* staff)

staff->undoUnlink();

mu::remove_if(systemObjectStaves, [staff](Staff* s){ return s == staff; });

undo(new RemoveStaff(staff));
}

Expand Down

0 comments on commit 7273044

Please sign in to comment.