From abd818a426dbc46ee34b601e311e31840e29cebe Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 29 Nov 2022 21:32:38 +0000 Subject: [PATCH] Update msgpanel after entering or exiting group. Fixes https://gitlab.com/kicad/code/kicad/issues/13031 --- pcbnew/tools/pcb_selection_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index e86864a054..c6932018b2 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -517,6 +517,8 @@ void PCB_SELECTION_TOOL::EnterGroup() select( titem ); } ); + m_toolMgr->ProcessEvent( EVENTS::SelectedEvent ); + view()->Hide( m_enteredGroup, true ); m_enteredGroupOverlay.Add( m_enteredGroup ); view()->Update( &m_enteredGroupOverlay ); @@ -534,7 +536,10 @@ void PCB_SELECTION_TOOL::ExitGroup( bool aSelectGroup ) ClearSelection(); if( aSelectGroup ) + { select( m_enteredGroup ); + m_toolMgr->ProcessEvent( EVENTS::SelectedEvent ); + } m_enteredGroupOverlay.Clear(); m_enteredGroup = nullptr;