summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 3dcddb4..20baaa7 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -214,6 +214,10 @@ class GerberParser(object):
self.evaluate(stmt)
self.statements.append(stmt)
+ # Initialize statement units
+ for stmt in self.statements:
+ stmt.units = self.settings.units
+
return GerberFile(self.statements, self.settings, self.primitives, filename)
def dump_json(self):