From c57c21f57741e16d5f3f44f0ad643208c9938664 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 22 Jun 2020 13:15:59 +0100 Subject: [PATCH] Pad bounding radius is from pad centre, NOT shape centre. --- pcbnew/drc/drc_keepout_tester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_keepout_tester.cpp b/pcbnew/drc/drc_keepout_tester.cpp index fb36df85d0..e8cf44e874 100644 --- a/pcbnew/drc/drc_keepout_tester.cpp +++ b/pcbnew/drc/drc_keepout_tester.cpp @@ -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 ) )