From 431c8dba3c322586eb06db244bb2aa69b51fbb19 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 9 Dec 2020 00:17:56 +0000 Subject: [PATCH] Adjust undo when deleting members of a group. Fixes https://gitlab.com/kicad/code/kicad/issues/6678 --- pcbnew/tools/edit_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index c895cfb653..f38fa9d731 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -1301,7 +1301,10 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent ) PCB_GROUP* parentGroup = static_cast( item )->GetParentGroup(); if( parentGroup ) + { + m_commit->Modify( parentGroup ); parentGroup->RemoveItem( static_cast( item ) ); + } switch( item->Type() ) {