Fix parsing of COORD with +000 styled numbers

This commit is contained in:
Paulo Henrique Silva 2014-10-17 17:20:49 -03:00
parent e128507974
commit cb18cc4635

View file

@ -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