Reinstate 5.1 net-tie hack since "real" net-ties got pushed to 7.0.

Fixes https://gitlab.com/kicad/code/kicad/issues/6556
This commit is contained in:
Jeff Young 2020-11-30 16:09:41 +00:00
parent 7261086779
commit dadfe03804
1 changed files with 4 additions and 1 deletions

View File

@ -457,8 +457,11 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
bool testShorting = !m_drcEngine->IsErrorLimitExceeded( DRCE_SHORTING_ITEMS );
bool testHoles = !m_drcEngine->IsErrorLimitExceeded( DRCE_HOLE_CLEARANCE );
FOOTPRINT* padParent = static_cast<FOOTPRINT*>( pad->GetParent() );
bool isNetTie = padParent->IsNetTie();
// Graphic items are allowed to act as net-ties within their own footprint
if( other->Type() == PCB_FP_SHAPE_T && pad->GetParent() == other->GetParent() )
if( isNetTie && other->Type() == PCB_FP_SHAPE_T && other->GetParent() == padParent )
testClearance = false;
// Track clearances are tested in testTrackClearances()