Fix coordinate computation when x or y is 0 in non standard way
This commit is contained in:
parent
0d4cb55c97
commit
5c4705fcee
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue