From f7ccb18af5c44e263bc9ceb9a3f1a6f894250ca7 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 16 Feb 2023 16:44:20 -0500 Subject: [PATCH] Revert "Symbol editor: stop removing overlay from view" This reverts commit f36cd60fdb3d5e33d8ad6c003b7ae7ce6fefe1fa. --- eeschema/symbol_editor/symbol_edit_frame.cpp | 8 -------- eeschema/symbol_editor/symbol_editor.cpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index 96897bee46..d345274b11 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -1215,10 +1215,6 @@ void SYMBOL_EDIT_FRAME::ShowChangedLanguage() void SYMBOL_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen ) { SCH_BASE_FRAME::SetScreen( aScreen ); - - // Let tools add things to the view if necessary - if( m_toolManager ) - m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD ); } @@ -1232,10 +1228,6 @@ void SYMBOL_EDIT_FRAME::RebuildView() GetCanvas()->GetView()->HideDrawingSheet(); GetCanvas()->GetView()->ClearHiddenFlags(); - // 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(); } diff --git a/eeschema/symbol_editor/symbol_editor.cpp b/eeschema/symbol_editor/symbol_editor.cpp index 5680ab0a25..82a282dedd 100644 --- a/eeschema/symbol_editor/symbol_editor.cpp +++ b/eeschema/symbol_editor/symbol_editor.cpp @@ -304,10 +304,6 @@ bool SYMBOL_EDIT_FRAME::LoadOneLibrarySymbolAux( LIB_SYMBOL* aEntry, const wxStr ClearUndoRedoList(); - // Let tools add things to the view if necessary - if( m_toolManager ) - m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD ); - // Display the document information based on the entry selected just in // case the entry is an alias. UpdateMsgPanel();