sodipodi:nodetypes order not flipped after drawing opposite direction from way's start node, damaging node type order
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).
What Inkscape is doing here, is not properly flipping the sodipodi:nodetypes
order when you start drawing from the 'start' node in a drawing, causing sodipodi:nodetypes
to become un-synced in the the drawing, and causing issues like inbox#8823.
Steps to reproduce:
- Open attached file: 1nodetype_bug.svg
- Go into the 'Node Tool', and notice there are 2 'smooth' nodes in the middle of the drawing.
- Now hit your 'TAB' button to select the first node in the drawing (which should be bottom right).
- Activate the 'Pen Tool'.
- Hover over the bottom right node and click on it and draw a single new node from it in any direction.
- Go back to 'Node Tool'.
What happened?
Of the 2 'smooth' nodes you originally noticed, 1 has swapped to a 'corner' node, and a previous 'corner' node is now a 'smooth' node, which is due to Inkscape not properly flipping the sodipodi:nodetypes
when the drawing node order was reversed due to you starting to draw at the previous 'start' node.
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.
1nodetype_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