Symbol editor: stop removing overlay from view
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13944
This commit is contained in:
parent
95232edd0d
commit
955a5a13eb
|
@ -1215,6 +1215,10 @@ void SYMBOL_EDIT_FRAME::ShowChangedLanguage()
|
||||||
void SYMBOL_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen )
|
void SYMBOL_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen )
|
||||||
{
|
{
|
||||||
SCH_BASE_FRAME::SetScreen( 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()->HideDrawingSheet();
|
||||||
GetCanvas()->GetView()->ClearHiddenFlags();
|
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()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||||
GetCanvas()->Refresh();
|
GetCanvas()->Refresh();
|
||||||
}
|
}
|
||||||
|
|
|
@ -304,6 +304,10 @@ bool SYMBOL_EDIT_FRAME::LoadOneLibrarySymbolAux( LIB_SYMBOL* aEntry, const wxStr
|
||||||
|
|
||||||
ClearUndoRedoList();
|
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
|
// Display the document information based on the entry selected just in
|
||||||
// case the entry is an alias.
|
// case the entry is an alias.
|
||||||
UpdateMsgPanel();
|
UpdateMsgPanel();
|
||||||
|
|
Loading…
Reference in New Issue