summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd9cbf1)
raw | patch | inline | side by side (parent: bd9cbf1)
author | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 22 Jul 2008 12:22:52 +0000 (12:22 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 22 Jul 2008 12:22:52 +0000 (12:22 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 27e1dd399fbee31c23725da7a837c7056b9ca53a..5bda2d2989a9b030065cc330afdf711094bd8b59 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
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;
}