diff options
author | hbc <bcxxxxxx@gmail.com> | 2015-02-25 09:39:53 +0800 |
---|---|---|
committer | hbc <bcxxxxxx@gmail.com> | 2015-02-25 09:39:53 +0800 |
commit | feb5b3d57117c1e47f1292d825d5675e88baa8c9 (patch) | |
tree | ae02e1a0e66d6a2ad53520cad6e2143fae24ef21 | |
parent | b8dcc86cb4560d033761db0ad41924f6d9669333 (diff) | |
download | gerbonara-feb5b3d57117c1e47f1292d825d5675e88baa8c9.tar.gz gerbonara-feb5b3d57117c1e47f1292d825d5675e88baa8c9.tar.bz2 gerbonara-feb5b3d57117c1e47f1292d825d5675e88baa8c9.zip |
Convert py3k's map object to tuple explicitly.
-rw-r--r-- | gerber/render/svgwrite_backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/render/svgwrite_backend.py b/gerber/render/svgwrite_backend.py index a88abfe..f8136e0 100644 --- a/gerber/render/svgwrite_backend.py +++ b/gerber/render/svgwrite_backend.py @@ -109,7 +109,7 @@ class GerberSvgContext(GerberContext): self.dwg.add(acircle) def _render_rectangle(self, rectangle, color): - center = map(mul, rectangle.position, self.scale) + center = tuple(map(mul, rectangle.position, self.scale)) size = tuple(map(mul, (rectangle.width, rectangle.height), map(abs, self.scale))) insert = center[0] - size[0] / 2., center[1] - size[1] / 2. arect = self.dwg.rect(insert=insert, size=size, |