summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-07 20:34:51 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-07 20:34:51 +0000
commit5a0c00ffa58c00f78600b12af2cc2ee554bceaf3 (patch)
tree021c86ab92ba5f39b3467ac01cd437f8aaab3236 /src
parent2geomify conversion to livaror in flood-context.cpp (diff)
downloadinkscape-5a0c00ffa58c00f78600b12af2cc2ee554bceaf3.tar.gz
inkscape-5a0c00ffa58c00f78600b12af2cc2ee554bceaf3.zip
convert item to livarot path using 2geom path
(bzr r6216)
Diffstat (limited to 'src')
-rw-r--r--src/splivarot.cpp11
1 files 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();