swhitty/SwiftDraw

Strange line breakage

Closed this issue · 2 comments

2n commented

This library helps me every day. Thank you so much.

I have tried to convert Feather icons using version 0.9.5.
Almost everything was converted correctly, but I could see a strange line breakage in "key.svg".
swiftdraw_key

I'm not sure if the problem is with the file or the library, but at least this SVG file shows up correctly in the macOS Finder and other graphics tools.

The link to key.svg is here.
https://feathericons.com/?query=key

Thank you for the bug report @2n.

This is now fixed in the 0.9.6 release.

There was a bug in how the path position was calculated when a path includes broken segments (multiple moves). Fix here

2n commented

Thanks for the quick bug fix!
It works perfectly now.