summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2014-10-22 00:53:40 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2014-10-22 00:53:40 -0200
commit5c4705fcee7786dc82d57cd09afeeca6abfcbb1b (patch)
tree5efec4867fe039938ff77467084e38dba99048d0 /gerber
parent0d4cb55c97a6f417f65e458093f3f2a9c36a421f (diff)
downloadgerbonara-5c4705fcee7786dc82d57cd09afeeca6abfcbb1b.tar.gz
gerbonara-5c4705fcee7786dc82d57cd09afeeca6abfcbb1b.tar.bz2
gerbonara-5c4705fcee7786dc82d57cd09afeeca6abfcbb1b.zip
Fix coordinate computation when x or y is 0 in non standard way
Diffstat (limited to 'gerber')
-rw-r--r--gerber/render.py2
1 files changed, 1 insertions, 1 deletions
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