summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2014-10-17 17:20:49 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2014-10-17 17:20:49 -0300
commitcb18cc4635afa14a1dd61bd9a678d8f28aadc38a (patch)
treedfff7a3c1dc050c42d7c5254732eec05118ccc7a
parente1285079745914b436a70cd1d9ee38dd4885a309 (diff)
downloadgerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.tar.gz
gerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.tar.bz2
gerbonara-cb18cc4635afa14a1dd61bd9a678d8f28aadc38a.zip
Fix parsing of COORD with +000 styled numbers
-rw-r--r--gerber/render.py4
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