diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-10-17 17:20:49 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-10-17 17:20:49 -0300 |
commit | cb18cc4635afa14a1dd61bd9a678d8f28aadc38a (patch) | |
tree | dfff7a3c1dc050c42d7c5254732eec05118ccc7a /gerber/render.py | |
parent | e1285079745914b436a70cd1d9ee38dd4885a309 (diff) | |
download | gerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.tar.gz gerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.tar.bz2 gerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.zip |
Fix parsing of COORD with +000 styled numbers
Diffstat (limited to 'gerber/render.py')
-rw-r--r-- | gerber/render.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/render.py b/gerber/render.py index 183a59f..8accf09 100644 --- a/gerber/render.py +++ b/gerber/render.py @@ -41,8 +41,8 @@ class GerberCoordFormat(object): self.y_int_digits, self.y_dec_digits = [int(d) for d in y] def resolve(self, x, y): - new_x = x - new_y = y + new_x = x.replace("+", "") + new_y = y.replace("+", "") if new_x is not None: negative = "-" in new_x |