From 132e78d2b8e226379b1c5190c5e3afefb5963438 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 27 Dec 2020 13:49:59 -0500 Subject: [PATCH] Fix pcbnew collector prioritization Fixes https://gitlab.com/kicad/code/kicad/-/issues/6307 --- pcbnew/collectors.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/collectors.cpp b/pcbnew/collectors.cpp index a5aa0b04b4..beac915dec 100644 --- a/pcbnew/collectors.cpp +++ b/pcbnew/collectors.cpp @@ -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; } }