From a3cce62be741cb2bc1e65165ba4f0b45c8838b60 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Thu, 23 Apr 2015 13:38:01 -0300 Subject: Fix Gerber generation for coord blocks with implicit op code --- gerber/rs274x.py | 3 +++ 1 file changed, 3 insertions(+) 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': -- cgit