From bf5a2968e227af90c9742a585939583f5d3da738 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 22 Jan 2022 20:51:22 +0100 Subject: Fix a bunch of bugs --- gerbonara/gerber/graphic_primitives.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/gerber/graphic_primitives.py') 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)) -- cgit