diff options
Diffstat (limited to 'gerbonara/gerber/aperture_macros/expression.py')
-rw-r--r-- | gerbonara/gerber/aperture_macros/expression.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/aperture_macros/expression.py b/gerbonara/gerber/aperture_macros/expression.py index 2375c56..f25fdd2 100644 --- a/gerbonara/gerber/aperture_macros/expression.py +++ b/gerbonara/gerber/aperture_macros/expression.py @@ -80,10 +80,10 @@ class UnitExpression(Expression): if self.unit is None or unit is None or self.unit == unit: return self._expr - elif unit == MM: + elif MM == unit: return self._expr * MILLIMETERS_PER_INCH - elif unit == Inch: + elif Inch == unit: return self._expr / MILLIMETERS_PER_INCH else: |