Duplicate nodes and Inkscape crashes in XML Editor
Steps to reproduce:
- Open an existing SVG document with at least 3 paths at the same level as each other, in Inkscape.
- Move one node into another node, by click-drag-releasing it directly on top of the other (this should make one node a parent node with a plus sign, and the other a child node).
- Do the same again with a third node, dragging it and releasing on top of the child node created in step 2 (there should now be a node at least two levels deep in the tree). We will call this the grandchild node of the first parent.
- Click on the "Unindent node" button at the top of the XML Editor panel. Note that it does not move the node back up the tree, and instead creates a duplicate node one level up, appearing underneath.
- Try moving the grandchild node anywhere in the tree (not the duplicate).
What happened?
After step 4, a duplicate node appears. After step 5, Inkscape crashes.
What should have happened?
After step 4, the grandchild node should have moved back up the tree.
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 0.92.4 (5da689c313, 2019-01-14)
- Operating System: Windows
- Operating System version: 8.1 64-bit
May be related to this issue