From 3ae6b9be61feade3c163e31947e413411ee59654 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 2 Apr 2025 17:49:03 +0200 Subject: kicad: fix for newer format versions --- gerbonara/cad/kicad/base_types.py | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit