From 0a9adaef73e12b9245afb8dbd26253f80ef3e8fc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 22 May 2020 14:11:59 +0100 Subject: [PATCH] Don't use bboxes for non-cartesian-rotated pad collision testing. --- pcbnew/drc/drc_clearance_test_functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_clearance_test_functions.cpp b/pcbnew/drc/drc_clearance_test_functions.cpp index 3df71dba1e..ed0cb9e382 100644 --- a/pcbnew/drc/drc_clearance_test_functions.cpp +++ b/pcbnew/drc/drc_clearance_test_functions.cpp @@ -911,7 +911,8 @@ bool DRC::checkClearanceSegmToPad( const SEG& refSeg, int refSegWidth, const D_P return false; } } - else if( pad->GetShape() == PAD_SHAPE_RECT || pad->GetShape() == PAD_SHAPE_ROUNDRECT ) + else if( ( pad->GetShape() == PAD_SHAPE_RECT || pad->GetShape() == PAD_SHAPE_ROUNDRECT ) + && ( (int) pad->GetOrientation() % 900 == 0 ) ) { EDA_RECT padBBox = pad->GetBoundingBox(); int widths = refSegWidth / 2;