Code

read PathVector instead of NArtBpath
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 22 Jun 2008 22:23:00 +0000 (22:23 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 22 Jun 2008 22:23:00 +0000 (22:23 +0000)
src/nodepath.cpp

index efa356fab3c9df5c0bed642eaebdaef22f76e953..8f4f9a7e735d87ea4223ecc2622cbf026d11cec3 100644 (file)
@@ -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);
             }
         }
     }