Fix coordinate computation when x or y is 0 in non standard way

This commit is contained in:
Paulo Henrique Silva 2014-10-22 00:53:40 -02:00
parent 0d4cb55c97
commit 5c4705fcee

View file

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