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:
parent
18b6bdf5dd
commit
820c2d2722
|
@ -361,7 +361,7 @@ public:
|
||||||
bool ContainsPoint( const VECTOR2I p ) const
|
bool ContainsPoint( const VECTOR2I p ) const
|
||||||
{
|
{
|
||||||
auto zone = static_cast<ZONE_CONTAINER*> ( Parent() );
|
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 );
|
return m_cachedPoly->ContainsPoint( p, clearance );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue