Don't use bboxes for non-cartesian-rotated pad collision testing.

This commit is contained in:
Jeff Young 2020-05-22 14:11:59 +01:00
parent 69f121d907
commit 0a9adaef73
1 changed files with 2 additions and 1 deletions

View File

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