summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/schematic.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/cad/kicad/schematic.py')
-rw-r--r--gerbonara/cad/kicad/schematic.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gerbonara/cad/kicad/schematic.py b/gerbonara/cad/kicad/schematic.py
index 846df2a..1a1af9d 100644
--- a/gerbonara/cad/kicad/schematic.py
+++ b/gerbonara/cad/kicad/schematic.py
@@ -110,10 +110,10 @@ def _polyline_svg(self, default_color):
if len(self.points.xy) < 2:
warnings.warn(f'Schematic {type(self)} with less than two points')
- x0, y0, *rest = self.points.xy
- da.move(x0, y0)
- for xn, yn in rest:
- da.line(xn, yn)
+ p0, *rest = self.points.xy
+ da.move(p0.x, p0.y)
+ for pn in rest:
+ da.line(pn.x, pn.y)
return da.svg(stroke=self.stroke.svg_color(default_color))