Adjust undo when deleting members of a group.
Fixes https://gitlab.com/kicad/code/kicad/issues/6678
This commit is contained in:
parent
5e9d9f5753
commit
431c8dba3c
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue