summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-04-23 13:38:01 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-04-23 13:38:01 -0300
commita3cce62be741cb2bc1e65165ba4f0b45c8838b60 (patch)
tree9bb5d06298bc90f70f4e7cccf6bd7639bf2ad774 /gerber
parent0c54a20263ea193b92674b8f74191bcf957f73fe (diff)
downloadgerbonara-a3cce62be741cb2bc1e65165ba4f0b45c8838b60.tar.gz
gerbonara-a3cce62be741cb2bc1e65165ba4f0b45c8838b60.tar.bz2
gerbonara-a3cce62be741cb2bc1e65165ba4f0b45c8838b60.zip
Fix Gerber generation for coord blocks with implicit op code
Diffstat (limited to 'gerber')
-rw-r--r--gerber/rs274x.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 6069c03..606d27f 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -455,6 +455,9 @@ class GerberParser(object):
if stmt.op:
self.op = stmt.op
+ else:
+ # no implicit op allowed, force here if coord block doesn't have it
+ stmt.op = self.op
if self.op == "D01":
if self.region_mode == 'on':