summaryrefslogtreecommitdiff
path: root/gerbonara/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-24 00:56:32 +0200
committerjaseg <git@jaseg.de>2023-04-24 00:56:32 +0200
commit5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f (patch)
tree40f18dc77010cdc7d8892f198ce37ba30c4e9ca9 /gerbonara/apertures.py
parentbda404c18be7e6c8a82c2a4022bcde1215679b9e (diff)
downloadgerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.tar.gz
gerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.tar.bz2
gerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.zip
Fixing more tests
Diffstat (limited to 'gerbonara/apertures.py')
-rw-r--r--gerbonara/apertures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py
index d5670a2..415eeee 100644
--- a/gerbonara/apertures.py
+++ b/gerbonara/apertures.py
@@ -392,8 +392,8 @@ class ObroundAperture(Aperture):
return ApertureMacroInstance(GenericMacros.obround,
[MM(inst.w, self.unit),
MM(inst.h, self.unit),
- MM(inst.hole_dia, self.unit),
- MM(inst.hole_rect_h, self.unit),
+ MM(inst.hole_dia, self.unit) or 0,
+ MM(inst.hole_rect_h, self.unit) or 0,
inst.rotation])
def _params(self, unit=None):