summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2025-04-02 17:49:03 +0200
committerjaseg <git@jaseg.de>2025-04-02 17:49:13 +0200
commit3ae6b9be61feade3c163e31947e413411ee59654 (patch)
tree57673fa763dc9ab4fcef641dcdec220450b71287
parenta6434f16cd7cfaaacf768778dc7efa7362b5884c (diff)
downloadgerbonara-3ae6b9be61feade3c163e31947e413411ee59654.tar.gz
gerbonara-3ae6b9be61feade3c163e31947e413411ee59654.tar.bz2
gerbonara-3ae6b9be61feade3c163e31947e413411ee59654.zip
kicad: fix for newer format versionsmain
-rw-r--r--gerbonara/cad/kicad/base_types.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gerbonara/cad/kicad/base_types.py b/gerbonara/cad/kicad/base_types.py
index d800a36..777cf7f 100644
--- a/gerbonara/cad/kicad/base_types.py
+++ b/gerbonara/cad/kicad/base_types.py
@@ -125,9 +125,7 @@ class Stroke:
class WidthMixin:
def __post_init__(self):
- if self.width is None:
- self.width = self.stroke.width
- else:
+ if self.width is not None:
self.stroke = Stroke(self.width)