diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-22 12:22:52 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-22 12:22:52 +0000 |
| commit | d44665336ee90e7cac6375c6d596f56c26fc35db (patch) | |
| tree | d5662c2f63663ced6c3394846b95ebed809d0c7c /src/shape-editor.cpp | |
| parent | initial handling of <script> tag (diff) | |
| download | inkscape-d44665336ee90e7cac6375c6d596f56c26fc35db.tar.gz inkscape-d44665336ee90e7cac6375c6d596f56c26fc35db.zip | |
Fix LP #250175 (broken undo in node tool)
(bzr r6392)
Diffstat (limited to '')
| -rw-r--r-- | src/shape-editor.cpp | 9 |
1 files 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; } |
