Don't test pad:track clearances in pad tester.

They've already been tested in the track tester.

Fixes https://gitlab.com/kicad/code/kicad/issues/6554
This commit is contained in:
Jeff Young 2020-11-30 12:08:59 +00:00
parent 7f360a7188
commit 3989c19c41
1 changed files with 4 additions and 0 deletions

View File

@ -461,6 +461,10 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
if( other->Type() == PCB_FP_SHAPE_T && pad->GetParent() == other->GetParent() ) if( other->Type() == PCB_FP_SHAPE_T && pad->GetParent() == other->GetParent() )
testClearance = false; testClearance = false;
// Track clearances are tested in testTrackClearances()
if( dynamic_cast<TRACK*>( other) )
testClearance = false;
if( !testClearance && !testShorting && !testHoles ) if( !testClearance && !testShorting && !testHoles )
return false; return false;