From 3f41875cfc27616b259bd2b9e3c5355433950136 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 7 Jul 2008 20:34:51 +0000 Subject: [PATCH] convert item to livarot path using 2geom path --- src/splivarot.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/splivarot.cpp b/src/splivarot.cpp index bbcc45540..4533ad9c6 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1754,15 +1754,14 @@ Path * Path_for_item(SPItem *item, bool doTransformation, bool transformFull) { SPCurve *curve = curve_for_item(item); - NArtBpath *bpath = bpath_for_curve(item, curve, doTransformation, transformFull); - - if (bpath == NULL) { + if (curve == NULL) { return NULL; } - - Path *dest = bpath_to_Path(bpath); - g_free(bpath); + Geom::PathVector pathv = pathvector_for_curve(item, curve, doTransformation, transformFull); + + Path *dest = new Path; + dest->LoadPathVector(pathv); curve->unref(); -- 2.30.2