From fd7348a1dfd88b65ea61da02325c6605aedf8c4f Mon Sep 17 00:00:00 2001 From: skef <6175836+skef@users.noreply.github.com> Date: Mon, 7 Jan 2019 21:24:35 -0800 Subject: [PATCH] Fix tuple assignment (#86) --- svgpathtools/paths2svg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svgpathtools/paths2svg.py b/svgpathtools/paths2svg.py index 3616b20..55036d5 100644 --- a/svgpathtools/paths2svg.py +++ b/svgpathtools/paths2svg.py @@ -306,8 +306,8 @@ def disvg(paths=None, colors=None, # Create an SVG file if svg_attributes is not None: - dimensions[0] = svg_attributes.get("width", dimensions[0]) - dimensions[1] = svg_attributes.get("height", dimensions[1]) + dimensions = (svg_attributes.get("width", dimensions[0]), + svg_attributes.get("height", dimensions[1])) debug = svg_attributes.get("debug", svgwrite_debug) dwg = Drawing(filename=filename, size=dimensions, debug=debug, **svg_attributes)