diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-02-24 22:51:45 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-02-24 22:51:45 -0300 |
commit | 2590eefc962b0a209ebdcbd281d093a07b141da5 (patch) | |
tree | ae02e1a0e66d6a2ad53520cad6e2143fae24ef21 /gerber/render/svgwrite_backend.py | |
parent | b8dcc86cb4560d033761db0ad41924f6d9669333 (diff) | |
parent | feb5b3d57117c1e47f1292d825d5675e88baa8c9 (diff) | |
download | gerbonara-2590eefc962b0a209ebdcbd281d093a07b141da5.tar.gz gerbonara-2590eefc962b0a209ebdcbd281d093a07b141da5.tar.bz2 gerbonara-2590eefc962b0a209ebdcbd281d093a07b141da5.zip |
Merge pull request #21 from bcho/hotfix/py3k-map-object
Convert py3k's map object to tuple explicitly.
Diffstat (limited to 'gerber/render/svgwrite_backend.py')
-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, |