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;
|
continue;
|
||||||
|
|
||||||
// Fast test to detect a pad inside the keepout area bounding box.
|
// 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() );
|
padBBox.Inflate( pad->GetBoundingRadius() );
|
||||||
|
|
||||||
if( !m_zoneBBox.Intersects( padBBox ) )
|
if( !m_zoneBBox.Intersects( padBBox ) )
|
||||||
|
|
Loading…
Reference in New Issue