From: johanengelen Date: Sun, 22 Jun 2008 22:23:00 +0000 (+0000) Subject: read PathVector instead of NArtBpath X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0177e79fe75baf752de17abf0ee220ce3dc2220f;p=inkscape.git read PathVector instead of NArtBpath --- diff --git a/src/nodepath.cpp b/src/nodepath.cpp index efa356fab..8f4f9a7e7 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -4706,12 +4706,10 @@ SPCurve* sp_nodepath_object_get_curve(SPObject *object, const gchar *key) { } else if ( IS_LIVEPATHEFFECT(object) && key) { const gchar *svgd = object->repr->attribute(key); if (svgd) { - NArtBpath *bpath = sp_svg_read_path(svgd); - SPCurve *curve_new = SPCurve::new_from_bpath(bpath); + Geom::PathVector pv = sp_svg_read_pathv(svgd); + SPCurve *curve_new = new SPCurve(pv); if (curve_new) { curve = curve_new; // don't do curve_copy because curve_new is already only created for us! - } else { - g_free(bpath); } } }