From 3c5c9d238fd9a5cf44bdbbea4a9a978a16d4ed3b Mon Sep 17 00:00:00 2001 From: cilix42 Date: Tue, 22 Jul 2008 12:22:52 +0000 Subject: [PATCH] Fix LP #250175 (broken undo in node tool) --- src/shape-editor.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 27e1dd399..5bda2d298 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -325,12 +325,15 @@ void ShapeEditor::reset_item (SubType type, bool keep_knotholder) char * key = g_strdup(this->nodepath->repr_key); set_item_lpe_path_parameter(item, obj, key); // the above checks for nodepath, so it is indeed a path that we are editing g_free(key); - } + } else { + SPItem * item = (SPItem *) get_item(SH_NODEPATH); + set_item(item, SH_NODEPATH); + } break; case SH_KNOTHOLDER: if (this->knotholder) { - const SPItem * item = get_item(SH_KNOTHOLDER); - set_item((SPItem *) item, SH_KNOTHOLDER, keep_knotholder); + SPItem * item = (SPItem *) get_item(SH_KNOTHOLDER); + set_item(item, SH_KNOTHOLDER, keep_knotholder); } break; } -- 2.30.2