SYMBOL_VIEWER_FRAME: fix refresh of the canvas after selecting a new symbol.

This commit is contained in:
jean-pierre charras 2022-01-21 16:37:06 +01:00
parent 7f6bc28f87
commit 242e66355c
1 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,8 @@ void SYMBOL_VIEWER_FRAME::updatePreviewSymbol()
AppendMsgPanel( _( "Keywords" ), m_previewItem->GetKeyWords() );
}
GetCanvas()->ForceRefresh();
m_toolManager->RunAction( ACTIONS::zoomFitScreen, true );
GetCanvas()->Refresh();
}
@ -673,7 +674,6 @@ void SYMBOL_VIEWER_FRAME::SetSelectedSymbol( const wxString& aSymbolName )
}
updatePreviewSymbol();
m_toolManager->RunAction( ACTIONS::zoomFitScreen, true );
}
}