diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index b4238b7dde..3f33193b40 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -78,7 +78,7 @@ SCH_ITEM* SCH_EDITOR_CONTROL::FindComponentAndItem( const wxString& aReference, if( pin ) { pos = pin->GetPosition(); - foundItem = component; + foundItem = pin; break; } }