From 6752fdd58b46e7f32a5efffbeaa87af475e5b237 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 8 Oct 2020 11:10:53 +0100 Subject: [PATCH] Fix bug with adding items to group in modedit. --- pcbnew/tools/group_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/group_tool.cpp b/pcbnew/tools/group_tool.cpp index 59410c6f8e..bcddd7d7b2 100644 --- a/pcbnew/tools/group_tool.cpp +++ b/pcbnew/tools/group_tool.cpp @@ -355,6 +355,9 @@ int GROUP_TOOL::Group( const TOOL_EVENT& aEvent ) group = new PCB_GROUP( module ); module->Add( group ); + + for( EDA_ITEM* item : selection ) + group->AddItem( static_cast( item ) ); } else {