Pad bounding radius is from pad centre, NOT shape centre.

This commit is contained in:
Jeff Young 2020-06-22 13:15:59 +01:00
parent d89f8407e0
commit c57c21f577
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )