In some cases Bezier curve calculations could fail due to division by zero.
(for example when signature was generated by older version of the lib or another lib with similar approach to saving canvas data like this one http://keith-wood.name/signature.html)
This PR fixes the issue by checking for zero before the division.
In some cases Bezier curve calculations could fail due to division by zero. (for example when signature was generated by older version of the lib or another lib with similar approach to saving canvas data like this one http://keith-wood.name/signature.html)
This PR fixes the issue by checking for zero before the division.