From b622e3a3f7597b5812fb3655c0ce40410f80db46 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 23 Mar 2023 18:36:20 +0100 Subject: [PATCH] SYMBOL_EDIT_FRAME: fix issue after loading a symbol from schematic editor. Selected items become invisible. Fixes #14151 https://gitlab.com/kicad/code/kicad/issues/14151 --- eeschema/symbol_editor/symbol_edit_frame.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index a6f8d6a02e..5184e530bb 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -1512,7 +1512,13 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol ) RebuildSymbolUnitsList(); SetShowDeMorgan( GetCurSymbol()->HasConversion() ); UpdateSymbolMsgPanelInfo(); - Refresh(); + + // Let tools add things to the view if necessary + if( m_toolManager ) + m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD ); + + GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL ); + GetCanvas()->Refresh(); }