Fix broken hole-to-track test.

This commit is contained in:
Jeff Young 2020-04-27 18:03:38 +01:00
parent 874f13e29e
commit 0c20c0b4af
1 changed files with 7 additions and 7 deletions

View File

@ -336,6 +336,13 @@ void DRC::doTrackDrc( TRACK* aRefSeg, TRACKS::iterator aStartIt, TRACKS::iterato
if( !inflatedBB.Contains( pad->GetPosition() ) )
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 )
{
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;
int minClearance = aRefSeg->GetClearance( pad, &clearanceSource );
int actual;