Crash on undo after deleting all nodes in a path
Summary:
After deleting all nodes in a path, Inkscape becomes likely to crash under certain conditions, in particular on undo.
Steps to reproduce:
Original:
- open Inkscape
- draw an ellipse
- change to path
- remove all but top and bottom nodes
- select two nodes and use tool to remove the left side segment (this removes the whole object, reported in another issue)
- undo two times
Minified:
- Open Inkscape.
- Using the pen tool, draw a triangle.
- Using the node tool, select all the nodes.
- Delete.
- Undo twice.
What happened?
Inkscape crashes
What should have happened?
Should have done undo and not crashed
Sample attachments:
Version info
Inkscape 1.3 (0e150ed6c4, 2023-07-21)
GLib version: 2.76.4
GTK version: 3.24.38
glibmm version: 2.66.6
gtkmm version: 3.24.7
libxml2 version: 2.11.4
libxslt version: 1.1.38
Cairo version: 1.17.7
Pango version: 1.50.14
HarfBuzz version: 8.0.1
OS version: Windows 11 22H2
Edited by PBS