pcbnew: Fix error in proximity calc for zones

Zone ContainsPoint() accuracy should be calculating the radial distance
and so does not need to be halved.
This commit is contained in:
Seth Hillbrand 2020-08-10 14:46:34 -07:00
parent 5096deeb3b
commit e5ab97994d
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ public:
bool ContainsPoint( const VECTOR2I p, int aAccuracy = 0 ) const
{
auto zone = static_cast<ZONE_CONTAINER*> ( Parent() );
int clearance = ( aAccuracy + 1 ) / 2;
int clearance = aAccuracy;
if( zone->GetFilledPolysUseThickness() )
clearance += ( zone->GetMinThickness() + 1 ) / 2;