diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-16 11:33:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-16 11:33:47 +0400 |
commit | d98814b21c773137b01c8c94db875790cbbfb389 (patch) | |
tree | 85ea3068c7dc0c151f7c2412dda9a0e35ca03bed /io_mesh_uv_layout/export_uv_svg.py | |
parent | 40bf5c2430b090cea2b2dc46426dba20cb374794 (diff) |
fix [#30971] viewBox attribute in exported svg wrong
Diffstat (limited to 'io_mesh_uv_layout/export_uv_svg.py')
-rw-r--r-- | io_mesh_uv_layout/export_uv_svg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py index ff504a0f..764f0d34 100644 --- a/io_mesh_uv_layout/export_uv_svg.py +++ b/io_mesh_uv_layout/export_uv_svg.py @@ -29,7 +29,7 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func): fw('<?xml version="1.0" standalone="no"?>\n') fw('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \n') fw(' "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n') - fw('<svg width="%dpx" height="%dpx" viewBox="0px 0px %dpx %dpx"\n' % + fw('<svg width="%d" height="%d" viewBox="0 0 %d %d"\n' % (image_width, image_height, image_width, image_height)) fw(' xmlns="http://www.w3.org/2000/svg" version="1.1">\n') desc = ("%r, %s, (Blender %s)" % @@ -54,7 +54,7 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func): except IndexError: fill = fill_default - fw('<polygon stroke="black" stroke-width="1px"') + fw('<polygon stroke="black" stroke-width="1"') if opacity > 0.0: fw(' %s fill-opacity="%.2g"' % (fill, opacity)) |