polyline2pathd was already adding the z command. Hence, adding the z twice caused closed shapes to be considered open shapes.

Change-Id: I36977ca9dc9611ffad2309e485fbd72e44fe3ff6
pull/13/head
Juan Contreras Franco 2017-03-15 09:26:14 +01:00
parent b019e30efd
commit 70ad96a40e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def svg2paths(svg_file_location,
# path strings, add to list
if convert_polygons_to_paths:
pgons = [dom2dict(el) for el in doc.getElementsByTagName('polygon')]
d_strings += [polyline2pathd(pg['points']) + 'z' for pg in pgons]
d_strings += [polyline2pathd(pg['points']) for pg in pgons]
attribute_dictionary_list += pgons
if convert_lines_to_paths: