sodipodi:nodetypes order seriously damaged after deleting a segment and drawing a new one
Summary:
Just discovered a way to seriously mess up the order of the sodipodi:nodetypes
in Inkscape which could lead to messed up drawings due to incorrect note types being applied if said nodes are moved after the fact since Inkscape saves the messed up order in your file. This could cause serious damage if the drawing has a ton of nodes in it (imagine a 200+ node drawing that triggers this).
Steps to reproduce:
- Open attached file: nodetype_bug.svg
- Go into the 'Node Tool', and notice the top 3 nodes on the 'outside' of the 'A' are 'smooth' nodes.
- Now select the bottom right two 'corner' nodes on the 'A'.
- Delete the segment between the two.
- Activate the 'Pen Tool'.
- Hover over either of the nodes (for the pictures above, I did it on the bottom right one) and click on it and draw a single new node.
- Go back to 'Node Tool'.
What happened?
The 3 'smooth' nodes you originally noticed at the top of the 'A' are now 'corner' nodes, and 3 other nodes that were previously 'corner' nodes, are now 'smooth' nodes instead.
What should have happened?
No node types should have changed in the file.
And NO, this is not a visual bug, Inkscape did really change the node's types because it didn't properly update the sodipodi:nodetypes
. Here's the file saved afterwards showing the nodetype issue.
nodetype_bug1.svg
Tested this as far back as 1.1.2, and it happens in that version as well.
Version info
1.1.2 (b8e25be833, 2022-02-05) x64
1.3 (0e150ed6c4, 2023-07-21) x64
Windows x64