Use FocusOnLocation for symbol fields cross-probing too.

This commit is contained in:
Jeff Young 2021-09-26 23:01:26 +01:00
parent 7bafbf9ca7
commit 8636afdc73
1 changed files with 1 additions and 2 deletions

View File

@ -119,8 +119,7 @@ SCH_ITEM* SCH_EDITOR_CONTROL::FindSymbolAndItem( const wxString& aReference,
if( crossProbingSettings.center_on_items ) if( crossProbingSettings.center_on_items )
{ {
m_frame->GetCanvas()->GetViewControls()->SetCrossHairCursorPosition( pos, false ); m_frame->FocusOnLocation( pos );
m_frame->CenterScreen( pos, false );
if( crossProbingSettings.zoom_to_fit ) if( crossProbingSettings.zoom_to_fit )
{ {