Browse Source

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

Fixes https://gitlab.com/kicad/code/kicad/issues/10949
7.0
Jeff Young 4 years ago
parent
commit
495b42c39f
  1. 2
      pcbnew/collectors.cpp

2
pcbnew/collectors.cpp

@ -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 ) )

Loading…
Cancel
Save