Code

fix broken rendering of paths with unknown LPEs, fix rendering of paths in a group...
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 14 May 2009 19:45:39 +0000 (19:45 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 14 May 2009 19:45:39 +0000 (19:45 +0000)
(this is related to r20988 and r21013)

src/sp-path.cpp

index 635cb6a9874d467fcfae0145042411849fd81b49..04ad386d9a0fb18cf63726c96d3d9b8397452abe 100644 (file)
@@ -409,7 +409,7 @@ sp_path_update_patheffect(SPLPEItem *lpeitem, bool write)
     SPPath * const path = (SPPath *) lpeitem;
     Inkscape::XML::Node *repr = SP_OBJECT_REPR(shape);
 
-    if (path->original_curve) {
+    if (path->original_curve && sp_lpe_item_has_path_effect_recursive(lpeitem)) {
         SPCurve *curve = path->original_curve->copy();
         /* if a path does not have an lpeitem applied, then reset the curve to the original_curve.
          * This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/