From 8636afdc73cf0e0634a1339a3657b944d5926391 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 26 Sep 2021 23:01:26 +0100 Subject: [PATCH] Use FocusOnLocation for symbol fields cross-probing too. --- eeschema/cross-probing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index b30924ee35..c48e8cc749 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -119,8 +119,7 @@ SCH_ITEM* SCH_EDITOR_CONTROL::FindSymbolAndItem( const wxString& aReference, if( crossProbingSettings.center_on_items ) { - m_frame->GetCanvas()->GetViewControls()->SetCrossHairCursorPosition( pos, false ); - m_frame->CenterScreen( pos, false ); + m_frame->FocusOnLocation( pos ); if( crossProbingSettings.zoom_to_fit ) {