Fix pcbnew collector prioritization

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6307
This commit is contained in:
Jon Evans 2020-12-27 13:49:59 -05:00
parent 3b25e7344a
commit 132e78d2b8
1 changed files with 4 additions and 4 deletions

View File

@ -517,7 +517,7 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
if( footprint->HitTest( m_refPos, accuracy )
&& footprint->HitTestAccurate( m_refPos, accuracy ) )
{
Append( item );
Append2nd( item );
goto exit;
}
}
@ -525,7 +525,7 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
{
if( shape->HitTest( m_refPos, accuracy ) )
{
Append( shape );
Append2nd( shape );
goto exit;
}
}
@ -535,7 +535,7 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
// noisy shape making it feel like they should have a larger bounary.
if( dimension->HitTest( m_refPos, KiROUND( accuracy * 1.5 ) ) )
{
Append( dimension );
Append2nd( dimension );
goto exit;
}
}
@ -543,7 +543,7 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
{
if( item->HitTest( m_refPos, 0 ) )
{
Append( item );
Append2nd( item );
goto exit;
}
}