diff options
author | Hamilton Kibbe <ham@hamiltonkib.be> | 2014-10-07 18:41:14 -0400 |
---|---|---|
committer | Hamilton Kibbe <ham@hamiltonkib.be> | 2014-10-07 18:41:14 -0400 |
commit | 5ff44efbcfca5316796a1ea0191b2a92894a59ee (patch) | |
tree | 0220632d037af7e57107a9ea5a9c249dafd1cf1d | |
parent | b971dacd3f058772326a479a562ceed0a9594deb (diff) | |
download | gerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.tar.gz gerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.tar.bz2 gerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.zip |
Fix resolve error
-rw-r--r-- | gerber/render/render.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerber/render/render.py b/gerber/render/render.py index eab7d33..e40960d 100644 --- a/gerber/render/render.py +++ b/gerber/render/render.py @@ -63,7 +63,9 @@ class GerberContext(object): self.aperture = d def resolve(self, x, y): - return x or self.x, y or self.y + x = x if x is not None else self.x + y = y if y is not None else self.y + return x, y def define_aperture(self, d, shape, modifiers): pass |