Browse Source

Make sure line widths (and clearances) are handled on rectangles.

pull/16/head
Jeff Young 6 years ago
parent
commit
986c1a27cd
  1. 8
      pcbnew/board_items_to_polygon_shape_transform.cpp

8
pcbnew/board_items_to_polygon_shape_transform.cpp

@ -377,6 +377,14 @@ void DRAWSEGMENT::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerB
for( const wxPoint& pt : pts )
aCornerBuffer.Append( pt );
if( width != 0 ) // Add thick outlines
{
TransformSegmentToPolygon( aCornerBuffer, pts[0], pts[1], aError, width );
TransformSegmentToPolygon( aCornerBuffer, pts[1], pts[2], aError, width );
TransformSegmentToPolygon( aCornerBuffer, pts[2], pts[3], aError, width );
TransformSegmentToPolygon( aCornerBuffer, pts[3], pts[0], aError, width );
}
}
break;

Loading…
Cancel
Save