diff options
author | jaseg <git@jaseg.de> | 2023-10-26 00:36:24 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-26 00:36:24 +0200 |
commit | a35125b123bb0c645f6e06c97287e2fb6ef2d6cb (patch) | |
tree | e1d0390f452d02ce7642985b9b6885cdec6d5e2f /gerbonara/graphic_primitives.py | |
parent | 31af2b260c660f53c3846056c466167b5177beb3 (diff) | |
download | gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.gz gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.bz2 gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.zip |
Fix all failing tests that don't involve kicad-cli
Diffstat (limited to 'gerbonara/graphic_primitives.py')
-rw-r--r-- | gerbonara/graphic_primitives.py | 5 |
1 files changed, 2 insertions, 3 deletions
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): |