Fix logic error. Footprint is sometimes the item and sometimes its parent.

Fixes https://gitlab.com/kicad/code/kicad/issues/10949
This commit is contained in:
Jeff Young 2022-03-01 21:17:15 +00:00
parent 298940e3d3
commit 495b42c39f
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
}
}
}
else if( footprint )
else if( item == footprint )
{
if( footprint->HitTest( m_refPos, accuracy )
&& footprint->HitTestAccurate( m_refPos, accuracy ) )