Don't run the footprint checker's shorting pads routine at board level.

Fixes https://gitlab.com/kicad/code/kicad/issues/13555
This commit is contained in:
Jeff Young 2023-01-16 16:43:00 +00:00
parent c4ccf46cc7
commit e490728226
1 changed files with 2 additions and 9 deletions

View File

@ -108,15 +108,8 @@ bool DRC_TEST_PROVIDER_FOOTPRINT_CHECKS::Run()
} );
}
if( !m_drcEngine->IsErrorLimitExceeded( DRCE_SHORTING_ITEMS ) )
{
footprint->CheckShortingPads(
[&]( const PAD* aPadA, const PAD* aPadB, const VECTOR2I& aPosition )
{
errorHandler( aPadA, aPadB, nullptr, DRCE_SHORTING_ITEMS, wxEmptyString,
aPosition, aPadA->GetPrincipalLayer() );
} );
}
// Don't call footprint->CheckShortingPads(). At the board level we know about nets,
// and the pads may have the same net even though they're distinct pads.
if( footprint->IsNetTie() )
{