From 8debf320794648677bfcd003536d94692e363fc6 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 3 Jul 2017 20:36:22 +1000 Subject: [PATCH] Added partial selection for VIA class --- pcbnew/class_track.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/class_track.cpp b/pcbnew/class_track.cpp index b7d6456337..31f721a2f1 100644 --- a/pcbnew/class_track.cpp +++ b/pcbnew/class_track.cpp @@ -1319,9 +1319,13 @@ bool VIA::HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy ) const box.Inflate( GetWidth() / 2 ); if( aContained ) + { return arect.Contains( box ); + } else - return arect.Intersects( box ); + { + return arect.IntersectsCircle( GetStart(), GetWidth() / 2 ); + } }