Adjust undo when deleting members of a group.

Fixes https://gitlab.com/kicad/code/kicad/issues/6678
This commit is contained in:
Jeff Young 2020-12-09 00:17:56 +00:00
parent 5e9d9f5753
commit 431c8dba3c
1 changed files with 3 additions and 0 deletions

View File

@ -1301,7 +1301,10 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
PCB_GROUP* parentGroup = static_cast<BOARD_ITEM*>( item )->GetParentGroup();
if( parentGroup )
{
m_commit->Modify( parentGroup );
parentGroup->RemoveItem( static_cast<BOARD_ITEM*>( item ) );
}
switch( item->Type() )
{