summaryrefslogtreecommitdiff
path: root/gerber/render
diff options
context:
space:
mode:
authorHamilton Kibbe <ham@hamiltonkib.be>2014-10-07 18:41:14 -0400
committerHamilton Kibbe <ham@hamiltonkib.be>2014-10-07 18:41:14 -0400
commit5ff44efbcfca5316796a1ea0191b2a92894a59ee (patch)
tree0220632d037af7e57107a9ea5a9c249dafd1cf1d /gerber/render
parentb971dacd3f058772326a479a562ceed0a9594deb (diff)
downloadgerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.tar.gz
gerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.tar.bz2
gerbonara-5ff44efbcfca5316796a1ea0191b2a92894a59ee.zip
Fix resolve error
Diffstat (limited to 'gerber/render')
-rw-r--r--gerber/render/render.py4
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