diff options
| author | Bastien Bouclet <bastien.bouclet@gmail.com> | 2008-03-28 19:13:14 +0000 |
|---|---|---|
| committer | bgk <bgk@users.sourceforge.net> | 2008-03-28 19:13:14 +0000 |
| commit | 6ba273d25f2e2e2697d502eb9b56c10da96d7c1e (patch) | |
| tree | 33a74ec0fae6b19d0948ce84a49c350767c8be7d /src/nodepath.cpp | |
| parent | nr_matrix_inverse is no more, removed test from nr-matrix-test (diff) | |
| download | inkscape-6ba273d25f2e2e2697d502eb9b56c10da96d7c1e.tar.gz inkscape-6ba273d25f2e2e2697d502eb9b56c10da96d7c1e.zip | |
- Created a SPLPEItem class that handles applying a LPE to an Item
- LPEs can now be applied to groups
- Updated the bend path to work properly with groups
(bzr r5219)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp index a563696cc..84d1125f4 100644 --- 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); } @@ -4555,7 +4555,7 @@ void sp_nodepath_set_curve (Inkscape::NodePath::Path *np, SPCurve *curve) { 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); |
