diff options
Diffstat (limited to 'src/livarot/PathCutting.cpp')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 7 |
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); |
