summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-04-07 18:55:03 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-04-07 18:55:12 -0300
commitd7ce97b180d7652b6e55470b3fe755a689b03ba8 (patch)
tree1a5e702c9631f209856b3716b07d8b94ac36d438
parent1ea7e14ba593a6fff7b4f7895875a7e93a03b1c8 (diff)
downloadgerbonara-d7ce97b180d7652b6e55470b3fe755a689b03ba8.tar.gz
gerbonara-d7ce97b180d7652b6e55470b3fe755a689b03ba8.tar.bz2
gerbonara-d7ce97b180d7652b6e55470b3fe755a689b03ba8.zip
(really) Fix parsing for AM macros with zero modifiers
-rw-r--r--gerber/gerber_statements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py
index 1159dc0..c40eb81 100644
--- a/gerber/gerber_statements.py
+++ b/gerber/gerber_statements.py
@@ -292,7 +292,7 @@ class ADParamStmt(ParamStmt):
if modifiers:
self.modifiers = [tuple([float(x) for x in m.split("X")]) for m in modifiers.split(",") if len(m)]
else:
- self.modifiers = []
+ self.modifiers = [tuple()]
def to_inch(self):
self.modifiers = [tuple([inch(x) for x in modifier]) for modifier in self.modifiers]