Browse Source

Don't delete items out from under undo lists.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15253
newinvert
Jeff Young 2 years ago
parent
commit
e2aa3aae8a
  1. 2
      pcbnew/board_commit.cpp

2
pcbnew/board_commit.cpp

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

Loading…
Cancel
Save