mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

fix polyline and polygon conversion #85

Closed NataliaTs closed 4 years ago

NataliaTs commented 5 years ago

When svg file that contains polylines or polygons is converted to paths using Document method flatten_all_paths() an exception occurring in polyline2pathd() method: TypeError: expected string or bytes-like object

Changing polyline2pathd() method to receive polyline instead of polyline_d makes both methods: flatten_all_paths() and svg2paths() working correctly when converting polylines and polygons.

abey79 commented 5 years ago

I ran into this issue as well.