Fix broken hole-to-track test.
This commit is contained in:
parent
874f13e29e
commit
0c20c0b4af
|
@ -336,6 +336,13 @@ void DRC::doTrackDrc( TRACK* aRefSeg, TRACKS::iterator aStartIt, TRACKS::iterato
|
||||||
if( !inflatedBB.Contains( pad->GetPosition() ) )
|
if( !inflatedBB.Contains( pad->GetPosition() ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( !( pad->GetLayerSet() & layerMask ).any() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// No need to check pads with the same net as the refSeg.
|
||||||
|
if( pad->GetNetCode() && aRefSeg->GetNetCode() == pad->GetNetCode() )
|
||||||
|
continue;
|
||||||
|
|
||||||
if( pad->GetDrillSize().x > 0 )
|
if( pad->GetDrillSize().x > 0 )
|
||||||
{
|
{
|
||||||
wxString clearanceSource;
|
wxString clearanceSource;
|
||||||
|
@ -380,13 +387,6 @@ void DRC::doTrackDrc( TRACK* aRefSeg, TRACKS::iterator aStartIt, TRACKS::iterato
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !( pad->GetLayerSet() & layerMask ).any() )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// No need to check pads with the same net as the refSeg.
|
|
||||||
if( pad->GetNetCode() && aRefSeg->GetNetCode() == pad->GetNetCode() )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
wxString clearanceSource;
|
wxString clearanceSource;
|
||||||
int minClearance = aRefSeg->GetClearance( pad, &clearanceSource );
|
int minClearance = aRefSeg->GetClearance( pad, &clearanceSource );
|
||||||
int actual;
|
int actual;
|
||||||
|
|
Loading…
Reference in New Issue