Code

slightly increase legibility
authorcilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:54:51 +0000 (14:54 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:54:51 +0000 (14:54 +0000)
src/nodepath.cpp

index 01846de06f3d5d6dad66e69c8d8baa450adbce19..f6f9ef0d199cca4e6f17d551e67fa337f0c8bbae 100644 (file)
@@ -199,8 +199,9 @@ sp_nodepath_create_helperpaths(Inkscape::NodePath::Path *np) {
     SPLPEItem *lpeitem = SP_LPE_ITEM(np->item);
     PathEffectList lpelist = sp_lpe_item_get_effect_list(lpeitem);
     for (PathEffectList::iterator i = lpelist.begin(); i != lpelist.end(); ++i) {
-        Inkscape::LivePathEffect::Effect *lpe = (*i)->lpeobject->lpe;
-        g_print ("Processing LPE %s\n", SP_OBJECT_REPR((*i)->lpeobject)->attribute("id"));
+        Inkscape::LivePathEffect::LPEObjectReference *lperef = (*i);
+        Inkscape::LivePathEffect::Effect *lpe = lperef->lpeobject->lpe;
+        g_print ("Processing LPE %s\n", SP_OBJECT_REPR(lperef->lpeobject)->attribute("id"));
         // create new canvas items from the effect's helper paths
         std::vector<Geom::PathVector> hpaths = lpe->getHelperPaths(lpeitem);
         for (std::vector<Geom::PathVector>::iterator j = hpaths.begin(); j != hpaths.end(); ++j) {