Fix tuple assignment (#86)

pull/100/head
skef 2019-01-07 21:24:35 -08:00 committed by Andy Port
parent ae42197d10
commit fd7348a1df
1 changed files with 2 additions and 2 deletions

View File

@ -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)