diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:55:03 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:55:12 -0300 |
commit | d7ce97b180d7652b6e55470b3fe755a689b03ba8 (patch) | |
tree | 1a5e702c9631f209856b3716b07d8b94ac36d438 | |
parent | 1ea7e14ba593a6fff7b4f7895875a7e93a03b1c8 (diff) | |
download | gerbonara-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.py | 2 |
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] |