Only report on clearances where there was one defined.
If it's 0, it's just a straight-up collision.
(cherry picked from commit 9976b9ce8c
)
This commit is contained in:
parent
76685ae2d9
commit
e759c4d27a
|
@ -235,9 +235,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
|
||||||
actual );
|
actual );
|
||||||
|
|
||||||
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
||||||
drce->SetViolatingRule( constraint.GetParentRule() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drce->SetViolatingRule( constraint.GetParentRule() );
|
||||||
drce->SetItems( fpA, fpB );
|
drce->SetItems( fpA, fpB );
|
||||||
reportViolation( drce, pos, F_CrtYd );
|
reportViolation( drce, pos, F_CrtYd );
|
||||||
}
|
}
|
||||||
|
@ -268,9 +268,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
|
||||||
actual );
|
actual );
|
||||||
|
|
||||||
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
||||||
drce->SetViolatingRule( constraint.GetParentRule() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drce->SetViolatingRule( constraint.GetParentRule() );
|
||||||
drce->SetItems( fpA, fpB );
|
drce->SetItems( fpA, fpB );
|
||||||
reportViolation( drce, pos, B_CrtYd );
|
reportViolation( drce, pos, B_CrtYd );
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,12 +307,17 @@ void DRC_TEST_PROVIDER_SOLDER_MASK::testSilkToMaskClearance()
|
||||||
clearance, &actual, &pos ) )
|
clearance, &actual, &pos ) )
|
||||||
{
|
{
|
||||||
auto drce = DRC_ITEM::Create( DRCE_SILK_CLEARANCE );
|
auto drce = DRC_ITEM::Create( DRCE_SILK_CLEARANCE );
|
||||||
wxString msg = formatMsg( _( "(%s clearance %s; actual %s)" ),
|
|
||||||
constraint.GetName(),
|
|
||||||
clearance,
|
|
||||||
actual );
|
|
||||||
|
|
||||||
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
if( clearance > 0 )
|
||||||
|
{
|
||||||
|
wxString msg = formatMsg( _( "(%s clearance %s; actual %s)" ),
|
||||||
|
constraint.GetName(),
|
||||||
|
clearance,
|
||||||
|
actual );
|
||||||
|
|
||||||
|
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
|
||||||
|
}
|
||||||
|
|
||||||
drce->SetItems( item );
|
drce->SetItems( item );
|
||||||
drce->SetViolatingRule( constraint.GetParentRule() );
|
drce->SetViolatingRule( constraint.GetParentRule() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue