Don't delete items out from under undo lists.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15253
This commit is contained in:
Jeff Young 2023-08-03 10:47:57 +01:00
parent 0f44876205
commit e2aa3aae8a
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
{ {
if( parentFP ) if( parentFP )
{ {
parentFP->Delete( boardItem ); parentFP->Remove( boardItem );
} }
else else
{ {