summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-26 00:36:24 +0200
committerjaseg <git@jaseg.de>2023-10-26 00:36:24 +0200
commita35125b123bb0c645f6e06c97287e2fb6ef2d6cb (patch)
treee1d0390f452d02ce7642985b9b6885cdec6d5e2f /gerbonara/utils.py
parent31af2b260c660f53c3846056c466167b5177beb3 (diff)
downloadgerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.gz
gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.tar.bz2
gerbonara-a35125b123bb0c645f6e06c97287e2fb6ef2d6cb.zip
Fix all failing tests that don't involve kicad-cli
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/utils.py b/gerbonara/utils.py
index 892b217..0e6a085 100644
--- a/gerbonara/utils.py
+++ b/gerbonara/utils.py
@@ -530,7 +530,7 @@ def svg_arc(old, new, center, clockwise):
f'A {r:.6} {r:.6} 0 1 {sweep_flag} {float(new[0]):.6} {float(new[1]):.6}'
else: # normal case
- d = point_line_distance(old, new, center[0], center[1])
+ d = point_line_distance(old, new, (center[0], center[1]))
large_arc = int((d < 0) == clockwise)
return f'A {r:.6} {r:.6} 0 {large_arc} {sweep_flag} {float(new[0]):.6} {float(new[1]):.6}'