From a35125b123bb0c645f6e06c97287e2fb6ef2d6cb Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 26 Oct 2023 00:36:24 +0200 Subject: Fix all failing tests that don't involve kicad-cli --- gerbonara/graphic_primitives.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gerbonara/graphic_primitives.py') diff --git a/gerbonara/graphic_primitives.py b/gerbonara/graphic_primitives.py index e136efb..99e570a 100644 --- a/gerbonara/graphic_primitives.py +++ b/gerbonara/graphic_primitives.py @@ -165,11 +165,10 @@ class ArcPoly(GraphicPrimitive): yield f'M {float(self.outline[0][0]):.6} {float(self.outline[0][1]):.6}' - for old, new, arc in self.segments: - if not arc: + for old, new, (clockwise, center) in self.segments: + if clockwise is None: yield f'L {float(new[0]):.6} {float(new[1]):.6}' else: - clockwise, center = arc yield svg_arc(old, new, center, clockwise) def to_svg(self, fg='black', bg='white', tag=Tag): -- cgit