From 9c240dfd00dd067d2ddde8c6d46c212bd55d8c55 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 22 Jun 2008 22:28:03 +0000 Subject: read PathVector instead of NArtBpath (bzr r6022) --- src/sp-path.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 16c8b85f4..962be5cb5 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -24,6 +24,7 @@ #include #include #include +#include <2geom/pathvector.h> #include "svg/svg.h" #include "xml/repr.h" @@ -247,8 +248,8 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) switch (key) { case SP_ATTR_INKSCAPE_ORIGINAL_D: if (value) { - NArtBpath *bpath = sp_svg_read_path(value); - SPCurve *curve = SPCurve::new_from_bpath(bpath); + Geom::PathVector pv = sp_svg_read_pathv(value); + SPCurve *curve = new SPCurve(pv); if (curve) { sp_path_set_original_curve(path, curve, TRUE, true); curve->unref(); @@ -261,8 +262,8 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) case SP_ATTR_D: if (!sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path))) { if (value) { - NArtBpath *bpath = sp_svg_read_path(value); - SPCurve *curve = SPCurve::new_from_bpath(bpath); + Geom::PathVector pv = sp_svg_read_pathv(value); + SPCurve *curve = new SPCurve(pv); if (curve) { sp_shape_set_curve((SPShape *) path, curve, TRUE); curve->unref(); -- cgit v1.2.3