From 789a695737b03bc5e6335443d561212d329f0f6a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 22 Nov 2023 14:21:42 +0000 Subject: [PATCH] Remove children from view_group when de-selecting. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16139 (cherry picked from commit 4a25ef164d3d8d6a44bd83670d7cab942d8d747c) --- eeschema/tools/ee_selection_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 86f2d778b9..d38e4b2053 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -1956,6 +1956,10 @@ void EE_SELECTION_TOOL::unhighlight( EDA_ITEM* aItem, int aMode, SELECTION* aGro aChild->ClearSelected(); else if( aMode == BRIGHTENED ) aChild->ClearBrightened(); + } + + if( aGroup ) + aGroup->Remove( aChild ); } ); }