Path coordinate rounding makes path disappear
Found this one while investigating https://bugs.launchpad.net/inkscape/+bug/537324.
Steps to reproduce:
- open Inkscape
- open file: path_with_near-zero_coordinates.svg
- click the path
- open Objects dialog
- deselect path
- click the path again
What happened?
The path disappears.
On click with the objects editor open, the path data is changed from M1,0 A1,1 0 1 1 0.99999999999999999999999 -0.00000000000000001
to M 1,0
or sometimes M1,0 A1,1 0 1 1 1 0
. Both make the path disappear (which is per se correct).
What should have happened?
The handling of this (admittedly not very well formed) path should not depend on the dialogs opened. Ideally, the path is immediately rounded on open, or not rounded at all.
Since resizing the path doesn't work (triggers rounding), I'd vote for rounding at startup.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (12e2a095, 2020-02-19)
- Operating System: Windows 10
- Operating System version: 10.0.18362