From: buliabyak Date: Sat, 28 Mar 2009 03:04:21 +0000 (+0000) Subject: we cannot rely on LPE attributes being properly parsed by the time we read d=; this... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cfdd8be29b1d3838dce5a1c0e2b31a4d65a01359;p=inkscape.git we cannot rely on LPE attributes being properly parsed by the time we read d=; this fixes the undo after a LPE is set or pasted and seems to have no ill effect otherwise (report to me if you find anything suspicious) --- diff --git a/src/sp-path.cpp b/src/sp-path.cpp index e570030dd..6720823cb 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -275,7 +275,6 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); break; case SP_ATTR_D: - if (!sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path))) { if (value) { Geom::PathVector pv = sp_svg_read_pathv(value); SPCurve *curve = new SPCurve(pv); @@ -287,7 +286,6 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) sp_shape_set_curve((SPShape *) path, NULL, TRUE); } object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); - } break; case SP_PROP_MARKER: case SP_PROP_MARKER_START: