diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index a563696cccbb4efbf1cbb395676974197cd81423..84d1125f44e2e7fbce5dd2d612a061494fe4a799 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -231,10 +231,10 @@ Inkscape::NodePath::Path *sp_nodepath_new(SPDesktop *desktop, SPObject *object,
}
} else {
np->repr_nodetypes_key = g_strdup("sodipodi:nodetypes");
- if ( SP_SHAPE(np->object)->path_effect_href ) {
+ if ( sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(np->object)) ) {
np->repr_key = g_strdup("inkscape:original-d");
- LivePathEffectObject *lpeobj = sp_shape_get_livepatheffectobject(SP_SHAPE(np->object));
+ LivePathEffectObject *lpeobj = sp_lpe_item_get_livepatheffectobject(SP_LPE_ITEM(np->object));
if (lpeobj && lpeobj->lpe) {
lpeobj->lpe->setup_nodepath(np);
}
return;
if (SP_IS_PATH(np->object)) {
- if (SP_SHAPE(np->object)->path_effect_href) {
+ if (sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(np->object))) {
sp_path_set_original_curve(SP_PATH(np->object), curve, true, false);
} else {
sp_shape_set_curve(SP_SHAPE(np->object), curve, true);