Browse Source

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
fusion360
Seth Hillbrand 2 years ago
parent
commit
f74d1060d4
  1. 4
      pcbnew/drc/drc_test_provider_connection_width.cpp

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

Loading…
Cancel
Save