Use the right sign when dealing with the clearance epsilon.

Fixes https://gitlab.com/kicad/code/kicad/issues/5313
This commit is contained in:
Jeff Young 2020-08-22 20:03:00 +01:00
parent 80ee805782
commit aa84bd6283
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ void DRC::doTrackDrc( BOARD_COMMIT& aCommit, TRACK* aRefSeg, TRACKS::iterator aS
int minClearance = aRefSeg->GetClearance( aLayer, zone, &m_clearanceSource );
int allowedDist = minClearance + halfWidth + THRESHOLD_DIST;
int allowedDist = minClearance + halfWidth - THRESHOLD_DIST;
int actual;
if( zone->GetFilledPolysList( aLayer ).Collide( testSeg, allowedDist, &actual ) )