Don't let selection VIEW_GROUP get lost from VIEW.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14969
This commit is contained in:
Jeff Young 2023-06-16 16:03:04 +01:00
parent 8259091ca1
commit b44c547aa6
1 changed files with 4 additions and 0 deletions

View File

@ -842,6 +842,10 @@ void SCH_EDIT_FRAME::HardRedraw()
FocusOnItem( nullptr );
GetCanvas()->DisplaySheet( GetCurrentSheet().LastScreen() );
if( EE_SELECTION_TOOL* selectionTool = m_toolManager->GetTool<EE_SELECTION_TOOL>() )
selectionTool->Reset( TOOL_BASE::REDRAW );
GetCanvas()->ForceRefresh();
}