From 51b9319246c82e9fd564d61b38f57a5d2a991dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Wed, 12 Jun 2019 16:33:48 +0200 Subject: [PATCH] pcbnew: updated connectivity algorithm to support JP's no-outline zones --- pcbnew/connectivity/connectivity_items.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/connectivity/connectivity_items.h b/pcbnew/connectivity/connectivity_items.h index 8fabdaaa91..0c24071983 100644 --- a/pcbnew/connectivity/connectivity_items.h +++ b/pcbnew/connectivity/connectivity_items.h @@ -355,7 +355,8 @@ public: bool ContainsPoint( const VECTOR2I p ) const { auto zone = static_cast ( Parent() ); - return m_cachedPoly->ContainsPoint( p, zone->GetMinThickness() ); + int clearance = zone->GetFilledPolysUseThickness() ? zone->GetMinThickness() : 0; + return m_cachedPoly->ContainsPoint( p, clearance ); } const BOX2I& BBox()