summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r--gerber/gerber_statements.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py
index 119df9d..b171a7f 100644
--- a/gerber/gerber_statements.py
+++ b/gerber/gerber_statements.py
@@ -176,7 +176,7 @@ class MOParamStmt(ParamStmt):
@classmethod
def from_units(cls, units):
- return cls(None, 'inch')
+ return cls(None, units)
@classmethod
def from_dict(cls, stmt_dict):
@@ -425,7 +425,7 @@ class AMParamStmt(ParamStmt):
else:
self.primitives.append(AMUnsupportPrimitive.from_gerber(primitive))
- return AMGroup(self.primitives, units=self.units)
+ return AMGroup(self.primitives, stmt=self, units=self.units)
def to_inch(self):
if self.units == 'metric':