mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
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();
|
PCB_GROUP* parentGroup = static_cast<BOARD_ITEM*>( item )->GetParentGroup();
|
||||||
|
|
||||||
if( parentGroup )
|
if( parentGroup )
|
||||||
|
{
|
||||||
|
m_commit->Modify( parentGroup );
|
||||||
parentGroup->RemoveItem( static_cast<BOARD_ITEM*>( item ) );
|
parentGroup->RemoveItem( static_cast<BOARD_ITEM*>( item ) );
|
||||||
|
}
|
||||||
|
|
||||||
switch( item->Type() )
|
switch( item->Type() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user