From c3ca1ce0146e9bf69a936ea7a0f8ccdd471dee65 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 7 Jan 2023 23:02:03 +0000 Subject: [PATCH] Tune the hit-test extra-slop for lines (and apply it to arcs too). Fixes https://gitlab.com/kicad/code/kicad/issues/13429 --- eeschema/tools/ee_selection_tool.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index a354c0259e..950ae3ee30 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -1047,9 +1047,10 @@ void EE_SELECTION_TOOL::GuessSelectionCandidates( EE_COLLECTOR& collector, const // Lines are hard to hit. Give them a bit more slop to still be considered "exact". - if( line || ( shape && shape->GetShape() == SHAPE_T::POLY ) ) + if( line || ( shape && shape->GetShape() == SHAPE_T::POLY ) + || ( shape && shape->GetShape() == SHAPE_T::ARC ) ) { - int pixelThreshold = KiROUND( getView()->ToWorld( 1 ) ); + int pixelThreshold = KiROUND( getView()->ToWorld( 6 ) ); if( item->HitTest( aPos, pixelThreshold ) ) exactHits.insert( item );