From b7279c0bab09175c56982d43a368afe5bc13a8f7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 25 Apr 2021 17:38:45 +0100 Subject: [PATCH] Don't allow rounding errors to flag DRC violations in hole2hole. Fixes https://gitlab.com/kicad/code/kicad/issues/8295 --- pcbnew/drc/drc_test_provider_hole_clearance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_test_provider_hole_clearance.cpp b/pcbnew/drc/drc_test_provider_hole_clearance.cpp index b37320aee7..3d88c97d48 100644 --- a/pcbnew/drc/drc_test_provider_hole_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_hole_clearance.cpp @@ -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, 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 ) {