summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-05-28 14:14:49 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-05-28 14:14:49 +0800
commit5a20b2b92dc7ab82e1f196d1efbf4bb52a163720 (patch)
tree9ecf7e9886c24a5e804c4e74374925ec971c0575 /gerber/rs274x.py
parent3fc296918e7d0d343840c5daa08eb6d564660a29 (diff)
downloadgerbonara-5a20b2b92dc7ab82e1f196d1efbf4bb52a163720.tar.gz
gerbonara-5a20b2b92dc7ab82e1f196d1efbf4bb52a163720.tar.bz2
gerbonara-5a20b2b92dc7ab82e1f196d1efbf4bb52a163720.zip
Fix converting amgroup units
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 86785bc..2bc8f9a 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -373,7 +373,9 @@ class GerberParser(object):
elif param["param"] == "AD":
yield ADParamStmt.from_dict(param)
elif param["param"] == "AM":
- yield AMParamStmt.from_dict(param)
+ stmt = AMParamStmt.from_dict(param)
+ stmt.units = self.settings.units
+ yield stmt
elif param["param"] == "OF":
yield OFParamStmt.from_dict(param)
elif param["param"] == "IN":