From 820c2d272235fcaf1539f4cf64903f29ecd237e7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 23 Aug 2019 10:37:58 -0700 Subject: [PATCH] pcbnew: Fix error in connecitivty calculation Point in polygon should test against half the stroke width as the stroke is performed _on_ the polygon edge. --- pcbnew/connectivity/connectivity_items.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/connectivity/connectivity_items.h b/pcbnew/connectivity/connectivity_items.h index e4a05f8db0..3e6ca7e9af 100644 --- a/pcbnew/connectivity/connectivity_items.h +++ b/pcbnew/connectivity/connectivity_items.h @@ -361,7 +361,7 @@ public: bool ContainsPoint( const VECTOR2I p ) const { auto zone = static_cast ( Parent() ); - int clearance = zone->GetFilledPolysUseThickness() ? zone->GetMinThickness() : 0; + int clearance = zone->GetFilledPolysUseThickness() ? zone->GetMinThickness() / 2 : 0; return m_cachedPoly->ContainsPoint( p, clearance ); }