Symbol editor: stop removing overlay from view

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13944
This commit is contained in:
Jon Evans 2023-02-16 08:17:00 -05:00
parent 95232edd0d
commit 955a5a13eb
2 changed files with 12 additions and 0 deletions

View File

@ -1215,6 +1215,10 @@ 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 );
}
@ -1228,6 +1232,10 @@ 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();
}

View File

@ -304,6 +304,10 @@ 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();