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

From Master branch
This commit is contained in:
jean-pierre charras 2022-01-21 16:37:06 +01:00
parent 0317185860
commit e9a5e5466c
1 changed files with 2 additions and 2 deletions

View File

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