diff options
Diffstat (limited to 'gerbonara/gerber/graphic_primitives.py')
-rw-r--r-- | gerbonara/gerber/graphic_primitives.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/graphic_primitives.py b/gerbonara/gerber/graphic_primitives.py index 644071c..629c1c2 100644 --- a/gerbonara/gerber/graphic_primitives.py +++ b/gerbonara/gerber/graphic_primitives.py @@ -213,8 +213,8 @@ class ArcPoly(GraphicPrimitive): bbox = (None, None), (None, None) for (x1, y1), (x2, y2), arc in self.segments: if arc: - clockwise, center = arc - bbox = add_bounds(bbox, arc_bounds(x1, y1, x2, y2, *center, clockwise)) + clockwise, (cx, cy) = arc + bbox = add_bounds(bbox, arc_bounds(x1, y1, x2, y2, (cx+x1, cy+y1), clockwise)) else: line_bounds = (min(x1, x2), min(y1, y2)), (max(x1, x2), max(y1, y2)) |