From 5c4705fcee7786dc82d57cd09afeeca6abfcbb1b Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Wed, 22 Oct 2014 00:53:40 -0200 Subject: Fix coordinate computation when x or y is 0 in non standard way --- gerber/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerber') diff --git a/gerber/render.py b/gerber/render.py index c6f086a..585b340 100644 --- a/gerber/render.py +++ b/gerber/render.py @@ -117,7 +117,7 @@ class GerberContext(object): def resolve(self, x, y): x, y = self.coord_format.resolve(x, y) - return x or self.x, y or self.y + return x if x is not None else self.x, y if y is not None else self.y def define_aperture(self, d, shape, modifiers): pass -- cgit