summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-03-19 23:26:11 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2009-03-19 23:26:11 +0000
commit814e487998159f3b7125935fde6b078de2280dc4 (patch)
treeca878a51a44fa25806b840ab4122d13032daee3b /src/shape-editor.cpp
parentfix crash when undoing LPE path param edit just after the edit. (diff)
downloadinkscape-814e487998159f3b7125935fde6b078de2280dc4.tar.gz
inkscape-814e487998159f3b7125935fde6b078de2280dc4.zip
tidy up SPObjects that must always be LivePathEffectObjects
(bzr r7526)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index bfe407957..dc1ec1c7e 100644
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
@@ -287,7 +287,7 @@ void ShapeEditor::set_item(SPItem *item, SubType type, bool keep_knotholder) {
/** Please note that this function only works for path parameters.
* All other parameters probably will crash Inkscape!
*/
-void ShapeEditor::set_item_lpe_path_parameter(SPItem *item, SPObject *lpeobject, const char * key)
+void ShapeEditor::set_item_lpe_path_parameter(SPItem *item, LivePathEffectObject *lpeobject, const char * key)
{
unset_item(SH_NODEPATH);
@@ -324,7 +324,7 @@ void ShapeEditor::reset_item (SubType type, bool keep_knotholder)
case SH_NODEPATH:
if ( (nodepath) && (IS_LIVEPATHEFFECT(nodepath->object)) ) {
char * key = g_strdup(nodepath->repr_key);
- set_item_lpe_path_parameter(nodepath->item, nodepath->object, key); // the above checks for nodepath, so it is indeed a path that we are editing
+ set_item_lpe_path_parameter(nodepath->item, LIVEPATHEFFECT(nodepath->object), key); // the above checks for nodepath, so it is indeed a path that we are editing
g_free(key);
} else {
set_item(SP_ITEM(obj), SH_NODEPATH);