mathandy / svgpathtools

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

Path.point() might not return a value due to numerical errors #205

Closed vasarhelyi closed 1 year ago

vasarhelyi commented 1 year ago

This function does not return a value at its end, but it can happen that pos is close to 1 (e.g. 0.9999999999999) and due to some numerical errors the for loop does not return anything. There is no return value after the loop and thus None is returned instead of e.g. self._segments[-1].point(1)

mathandy commented 1 year ago

Yes, that's no good. Thanks @vasarhelyi ! Fix in-bound.

mathandy commented 1 year ago

Fixed in 1.6.1