summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad0961d)
raw | patch | inline | side by side (parent: ad0961d)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:23:00 +0000 (22:23 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:23:00 +0000 (22:23 +0000) |
src/nodepath.cpp | patch | blob | history |
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index efa356fab3c9df5c0bed642eaebdaef22f76e953..8f4f9a7e735d87ea4223ecc2622cbf026d11cec3 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
} 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);
}
}
}