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
This commit is contained in:
Seth Hillbrand 2024-05-22 16:30:09 -07:00
parent bce560d05f
commit f74d1060d4
1 changed files with 2 additions and 2 deletions

View File

@ -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 );