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.
This commit is contained in:
Seth Hillbrand 2019-08-23 10:37:58 -07:00
parent 18b6bdf5dd
commit 820c2d2722
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ public:
bool ContainsPoint( const VECTOR2I p ) const
{
auto zone = static_cast<ZONE_CONTAINER*> ( Parent() );
int clearance = zone->GetFilledPolysUseThickness() ? zone->GetMinThickness() : 0;
int clearance = zone->GetFilledPolysUseThickness() ? zone->GetMinThickness() / 2 : 0;
return m_cachedPoly->ContainsPoint( p, clearance );
}