From: johanengelen Date: Fri, 6 Jun 2008 23:30:39 +0000 (+0000) Subject: for nodepath, start using 2geompath for svg_write: sp_svg_write_path(np->curve->get_p... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=61ee746be04d528ead3f1e3321e7c6e1e857a685;p=inkscape.git for nodepath, start using 2geompath for svg_write: sp_svg_write_path(np->curve->get_pathvector() ); --- diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 249721cfa..634604518 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -560,7 +560,7 @@ static void update_repr_internal(Inkscape::NodePath::Path *np) np->curve = create_curve(np); gchar *typestr = create_typestr(np); - gchar *svgpath = sp_svg_write_path(SP_CURVE_BPATH(np->curve)); + gchar *svgpath = sp_svg_write_path(np->curve->get_pathvector()); // determine if path has an effect applied and write to correct "d" attribute. if (repr->attribute(np->repr_key) == NULL || strcmp(svgpath, repr->attribute(np->repr_key))) { // d changed @@ -637,7 +637,7 @@ static void stamp_repr(Inkscape::NodePath::Path *np) SPCurve *curve = create_curve(np); gchar *typestr = create_typestr(np); - gchar *svgpath = sp_svg_write_path(SP_CURVE_BPATH(curve)); + gchar *svgpath = sp_svg_write_path(curve->get_pathvector()); new_repr->setAttribute(np->repr_key, svgpath); new_repr->setAttribute(np->repr_nodetypes_key, typestr); @@ -4722,7 +4722,7 @@ void sp_nodepath_set_curve (Inkscape::NodePath::Path *np, SPCurve *curve) { } else if ( IS_LIVEPATHEFFECT(np->object) ) { // FIXME: this writing to string and then reading from string is bound to be slow. // create a method to convert from curve directly to 2geom... - gchar *svgpath = sp_svg_write_path(SP_CURVE_BPATH(np->curve)); + gchar *svgpath = sp_svg_write_path( np->curve->get_pathvector() ); LIVEPATHEFFECT(np->object)->lpe->setParameter(np->repr_key, svgpath); g_free(svgpath);