From f74d1060d44420642958bfba5910ebf7403143c8 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 22 May 2024 16:30:09 -0700 Subject: [PATCH] Ensure that the copper conn check re-adds epsilon When checking if the particular rule is what is being checked, we rely on the value of the minimum width. Since we modified that to allow width checking, this re-adds it for the comparison --- pcbnew/drc/drc_test_provider_connection_width.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_test_provider_connection_width.cpp b/pcbnew/drc/drc_test_provider_connection_width.cpp index 20b5000663..4511fb89ad 100644 --- a/pcbnew/drc/drc_test_provider_connection_width.cpp +++ b/pcbnew/drc/drc_test_provider_connection_width.cpp @@ -760,14 +760,14 @@ bool DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run() DRC_CONSTRAINT c = m_drcEngine->EvalRules( CONNECTION_WIDTH_CONSTRAINT, item1, item2, aLayer ); - if( c.Value().Min() == aMinWidth ) + if( c.Value().Min() == aMinWidth + board->GetDesignSettings().GetDRCEpsilon() ) { auto drce = DRC_ITEM::Create( DRCE_CONNECTION_WIDTH ); wxString msg; msg = formatMsg( _( "(%s minimum connection width %s; actual %s)" ), c.GetName(), - aMinWidth, + c.Value().Min(), dist ); msg += wxS( " " ) + layerDesc( aLayer );