diff options
author | jaseg <git@jaseg.de> | 2023-07-20 16:56:20 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-07-20 16:56:20 +0200 |
commit | 60674ab5b3a76e325336905586b35916660e4472 (patch) | |
tree | 88a1ae6de1d6c6f2b6ed5a5106a1e2401d258b5d /gerbonara/cad/kicad/schematic.py | |
parent | bdbdf7f58607bb98999e17ace8a743267a06cd9d (diff) | |
download | gerbonara-60674ab5b3a76e325336905586b35916660e4472.tar.gz gerbonara-60674ab5b3a76e325336905586b35916660e4472.tar.bz2 gerbonara-60674ab5b3a76e325336905586b35916660e4472.zip |
Fix line rendering
Diffstat (limited to 'gerbonara/cad/kicad/schematic.py')
-rw-r--r-- | gerbonara/cad/kicad/schematic.py | 8 |
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)) |