Don't allow rounding errors to flag DRC violations in hole2hole.

Fixes https://gitlab.com/kicad/code/kicad/issues/8295
This commit is contained in:
Jeff Young 2021-04-25 17:38:45 +01:00
parent 517bcb15b1
commit b7279c0bab
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ bool DRC_TEST_PROVIDER_HOLE_CLEARANCE::testHoleAgainstHole( BOARD_ITEM* aItem, S
auto constraint = m_drcEngine->EvalRules( HOLE_TO_HOLE_CONSTRAINT, aItem, aOther, auto constraint = m_drcEngine->EvalRules( HOLE_TO_HOLE_CONSTRAINT, aItem, aOther,
UNDEFINED_LAYER /* holes pierce all layers */ ); UNDEFINED_LAYER /* holes pierce all layers */ );
int minClearance = constraint.GetValue().Min(); int minClearance = constraint.GetValue().Min() - m_board->GetDesignSettings().GetDRCEpsilon();
if( minClearance >= 0 && actual < minClearance ) if( minClearance >= 0 && actual < minClearance )
{ {