ZeroDivisionError on transform path
Steps to reproduce:
I received a user file which contains a rectangle with an ry
value of 1.6217518e-12
Run inkex.Path(rect.get_path()).transform(inkex.Transform('translate(10, 0)'))
on rect1 in the given file (can be any transform).
What happened?
The extension returns a ZeroDivisionError:
[...]/inkex/paths.py", line 1135, in transform
rx_ = 1.0 / sqrt(half + delta)
ZeroDivisionError: float division by zero
Edit: with newer inkex versions:
[...]/inkex/paths/arc.py", line 321, in transform
rx_ = 1.0 / sqrt(half + delta)
ZeroDivisionError: float division by zero
Edited by Kaalleen