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.

(cherry picked from commit 820c2d2722)
This commit is contained in:
Seth Hillbrand 2019-08-23 10:37:58 -07:00
parent 25f6483488
commit b991beb712
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ public:
bool ContainsPoint( const VECTOR2I p ) const
{
auto zone = static_cast<ZONE_CONTAINER*> ( Parent() );
return m_cachedPoly->ContainsPoint( p, zone->GetMinThickness() );
return m_cachedPoly->ContainsPoint( p, zone->GetMinThickness() / 2 );
}
const BOX2I& BBox()