From cb18cc4635afa14a1dd61bd9a678d8f28aadc38a Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Fri, 17 Oct 2014 17:20:49 -0300 Subject: Fix parsing of COORD with +000 styled numbers --- gerber/render.py | 4 ++-- 1 file 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 -- cgit