Handle another case where schematic view was being cleared

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13944


(cherry picked from commit ec2fc161e1)
This commit is contained in:
Jon Evans 2023-02-16 08:25:10 -05:00
parent f36cd60fdb
commit 245ce7259c
1 changed files with 4 additions and 0 deletions

View File

@ -478,6 +478,10 @@ void SCH_BASE_FRAME::RemoveFromScreen( EDA_ITEM* aItem, SCH_SCREEN* aScreen )
void SCH_BASE_FRAME::SyncView()
{
// Let tools add things to the view if necessary
if( m_toolManager )
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
}