diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 7146d91f9..0ad6171c1 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -428,11 +428,17 @@ void Path::LoadPath(Geom::Path const &path, Geom::Matrix const &tr, bool doTran MoveTo( from_2geom(pathtr.initialPoint()) ); - for(Geom::Path::const_iterator cit = pathtr.begin(); cit != pathtr.end_default(); ++cit) { + for(Geom::Path::const_iterator cit = pathtr.begin(); cit != pathtr.end_open(); ++cit) { AddCurve(*cit); } if (pathtr.closed()) { + // check if closing segment is empty before adding it + Geom::Curve const &crv = pathtr.back_closed(); + if ( !crv.isDegenerate() ) { + AddCurve(crv); + } + Close(); } } |
