summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/graphic_primitives.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-22 20:51:22 +0100
committerjaseg <git@jaseg.de>2022-01-22 20:51:22 +0100
commitbf5a2968e227af90c9742a585939583f5d3da738 (patch)
treec2b8e1ffc6bcd8c273cc461228659429f7de39fd /gerbonara/gerber/graphic_primitives.py
parenteae43a579e128b29cd10f645837efba5bf0a3b40 (diff)
downloadgerbonara-bf5a2968e227af90c9742a585939583f5d3da738.tar.gz
gerbonara-bf5a2968e227af90c9742a585939583f5d3da738.tar.bz2
gerbonara-bf5a2968e227af90c9742a585939583f5d3da738.zip
Fix a bunch of bugs
Diffstat (limited to 'gerbonara/gerber/graphic_primitives.py')
-rw-r--r--gerbonara/gerber/graphic_primitives.py4
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))