summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathCutting.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-26 22:57:43 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-26 22:57:43 +0000
commitba7148ac81268798ee337c661bca7a9168c19b5a (patch)
tree7a03c30c76ca169ae8be32cae5a039280f4b9e3f /src/livarot/PathCutting.cpp
parentuse CairoRenderContext::renderPathVector (diff)
downloadinkscape-ba7148ac81268798ee337c661bca7a9168c19b5a.tar.gz
inkscape-ba7148ac81268798ee337c661bca7a9168c19b5a.zip
don't use splivarot to get livarot path, use livarot's LoadPathVector method instead
(bzr r6076)
Diffstat (limited to 'src/livarot/PathCutting.cpp')
-rw-r--r--src/livarot/PathCutting.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp
index c67fc9c97..2987536c3 100644
--- a/src/livarot/PathCutting.cpp
+++ b/src/livarot/PathCutting.cpp
@@ -452,6 +452,8 @@ void Path::LoadPath(Geom::Path const &path, Geom::Matrix const &tr, bool doTran
if (path.empty())
return;
+ // TODO: this can be optimized by not generating a new path here, but doing the transform in AddCurve
+ // directly on the curve parameters
Geom::Path const pathtr = doTransformation ? path * tr : path;
MoveTo( from_2geom(pathtr.initialPoint()) );
@@ -465,6 +467,11 @@ void Path::LoadPath(Geom::Path const &path, Geom::Matrix const &tr, bool doTran
}
}
+void Path::LoadPathVector(Geom::PathVector const &pv)
+{
+ LoadPathVector(pv, Geom::Matrix(), false);
+}
+
void Path::LoadPathVector(Geom::PathVector const &pv, Geom::Matrix const &tr, bool doTransformation)
{
SetBackData (false);