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:
parent
5096deeb3b
commit
e5ab97994d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue