Pad bounding radius is from pad centre, NOT shape centre.
This commit is contained in:
parent
d89f8407e0
commit
c57c21f577
|
@ -231,7 +231,7 @@ bool DRC_KEEPOUT_TESTER::checkPads( MODULE* aModule )
|
|||
continue;
|
||||
|
||||
// Fast test to detect a pad inside the keepout area bounding box.
|
||||
EDA_RECT padBBox( pad->ShapePos(), wxSize() );
|
||||
EDA_RECT padBBox( pad->GetPosition(), wxSize() );
|
||||
padBBox.Inflate( pad->GetBoundingRadius() );
|
||||
|
||||
if( !m_zoneBBox.Intersects( padBBox ) )
|
||||
|
|
Loading…
Reference in New Issue