Browse Source

Fix logic error with silk overlap test.

7.0
Jeff Young 4 years ago
parent
commit
d14fd5a9da
  1. 9
      pcbnew/drc/drc_test_provider_silk_clearance.cpp

9
pcbnew/drc/drc_test_provider_silk_clearance.cpp

@ -207,9 +207,12 @@ bool DRC_TEST_PROVIDER_SILK_CLEARANCE::Run()
// single footprint or on the board.
if( aRefItem->Type() == PCB_SHAPE_T && aTestItem->Type() == PCB_SHAPE_T )
{
// also true when both are nullptr
if( aRefItem->GetParentFootprint() == aTestItem->GetParentFootprint() )
return true;
return true;
}
else if( aRefItem->Type() == PCB_FP_SHAPE_T && aTestItem->Type() == PCB_FP_SHAPE_T
&& aRefItem->GetParentFootprint() == aTestItem->GetParentFootprint() )
{
return true;
}
if( aRefShape->Collide( aTestShape, minClearance, &actual, &pos ) )

Loading…
Cancel
Save