summaryrefslogtreecommitdiff
path: root/gerbonara
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-03 17:50:15 +0200
committerjaseg <git@jaseg.de>2023-07-03 17:50:15 +0200
commit2eb88e812792c7819196662fe3535ce21c1e4e88 (patch)
tree5cb39f8137acc11afb2af08de7a6a7412cc28a25 /gerbonara
parent95728fb33c0a0d18b48677607da37bbaa2e2af0e (diff)
downloadgerbonara-2eb88e812792c7819196662fe3535ce21c1e4e88.tar.gz
gerbonara-2eb88e812792c7819196662fe3535ce21c1e4e88.tar.bz2
gerbonara-2eb88e812792c7819196662fe3535ce21c1e4e88.zip
Fix variable expression rendering
Diffstat (limited to 'gerbonara')
-rw-r--r--gerbonara/aperture_macros/expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/aperture_macros/expression.py b/gerbonara/aperture_macros/expression.py
index ca8c15c..99d02eb 100644
--- a/gerbonara/aperture_macros/expression.py
+++ b/gerbonara/aperture_macros/expression.py
@@ -167,7 +167,7 @@ class VariableExpression(Expression):
def optimized(self, variable_binding={}):
if self.number in variable_binding:
- return ConstantExpression(expr(variable_binding[self.number]).optimized(variable_binding))
+ return expr(variable_binding[self.number]).optimized(variable_binding)
return self
def __eq__(self, other):