Skip to content

Commit 7273044

Browse files
mike-spaRomanPudashkin
authored andcommitted
Fix crash on deleting "system object" staff
correction
1 parent 23415d5 commit 7273044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engraving/libmscore/edit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,6 +5144,8 @@ void Score::undoRemoveStaff(Staff* staff)
51445144

51455145
staff->undoUnlink();
51465146

5147+
mu::remove_if(systemObjectStaves, [staff](Staff* s){ return s == staff; });
5148+
51475149
undo(new RemoveStaff(staff));
51485150
}
51495151

0 commit comments

Comments
 (0)