Test pad:hole violations in footprints as long as not same pad number.
Fixes https://gitlab.com/kicad/code/kicad/issues/12124
This commit is contained in:
parent
51b905ba32
commit
015bde8cb0
|
@ -497,8 +497,8 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
|
||||||
if( fp->IsNetTie() && ( other->Type() == PCB_FP_SHAPE_T || other->Type() == PCB_PAD_T ) )
|
if( fp->IsNetTie() && ( other->Type() == PCB_FP_SHAPE_T || other->Type() == PCB_PAD_T ) )
|
||||||
testClearance = false;
|
testClearance = false;
|
||||||
|
|
||||||
// No hole testing within a footprint
|
if( other->Type() == PCB_PAD_T && pad->SameLogicalPadAs( static_cast<PAD*>( other ) ) )
|
||||||
testHoles = false;
|
testHoles = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
PAD* otherPad = nullptr;
|
PAD* otherPad = nullptr;
|
||||||
|
|
|
@ -158,7 +158,8 @@ public:
|
||||||
bool SameLogicalPadAs( const PAD* other ) const
|
bool SameLogicalPadAs( const PAD* other ) const
|
||||||
{
|
{
|
||||||
// hide tricks behind sensible API
|
// hide tricks behind sensible API
|
||||||
return GetParentFootprint() == other->GetParentFootprint() && m_number == other->m_number;
|
return GetParentFootprint() == other->GetParentFootprint()
|
||||||
|
&& !m_number.IsEmpty() && m_number == other->m_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue