Fix logic error with silk overlap test.
This commit is contained in:
parent
ecbf5c1e14
commit
d14fd5a9da
|
@ -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…
Reference in New Issue