diff options
Diffstat (limited to 'src/livarot/PathCutting.cpp')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 49b2c5a78..74653ca06 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -269,10 +269,11 @@ void Path::DashSubPath(int spL, int spP, std::vector<path_lineto> const &orig_pt } } -Geom::PathVector * +Geom::PathVector Path::MakePathVector() { - Geom::PathVector *pv = new Geom::PathVector(); + Geom::PathVector retPv; + Geom::PathVector *pv = &retPv; Geom::Path * currentpath = NULL; Geom::Point lastP,bezSt,bezEn; @@ -380,7 +381,7 @@ Path::MakePathVector() } } - return pv; + return *pv; } void Path::AddCurve(Geom::Curve const &c) |
