diff options
author | jaseg <git@jaseg.de> | 2025-04-02 17:49:03 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2025-04-02 17:49:13 +0200 |
commit | 3ae6b9be61feade3c163e31947e413411ee59654 (patch) | |
tree | 57673fa763dc9ab4fcef641dcdec220450b71287 | |
parent | a6434f16cd7cfaaacf768778dc7efa7362b5884c (diff) | |
download | gerbonara-3ae6b9be61feade3c163e31947e413411ee59654.tar.gz gerbonara-3ae6b9be61feade3c163e31947e413411ee59654.tar.bz2 gerbonara-3ae6b9be61feade3c163e31947e413411ee59654.zip |
kicad: fix for newer format versionsmain
-rw-r--r-- | gerbonara/cad/kicad/base_types.py | 4 |
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) |