Use the right sign when dealing with the clearance epsilon.
Fixes https://gitlab.com/kicad/code/kicad/issues/5313
This commit is contained in:
parent
80ee805782
commit
aa84bd6283
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue