diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-22 22:23:00 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-22 22:23:00 +0000 |
| commit | 5a1ee37a65e292d4f0a8bdf965939e704529f5a9 (patch) | |
| tree | da4ee70cff19a05f46071191eb0f4766ac755ff4 /src/nodepath.cpp | |
| parent | split paths using 2geom PathVector (diff) | |
| download | inkscape-5a1ee37a65e292d4f0a8bdf965939e704529f5a9.tar.gz inkscape-5a1ee37a65e292d4f0a8bdf965939e704529f5a9.zip | |
read PathVector instead of NArtBpath
(bzr r6021)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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); } } } |
