From ba7148ac81268798ee337c661bca7a9168c19b5a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 26 Jun 2008 22:57:43 +0000 Subject: don't use splivarot to get livarot path, use livarot's LoadPathVector method instead (bzr r6076) --- src/livarot/PathCutting.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/livarot/PathCutting.cpp') 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); -- cgit v1.2.3