From 6ae198bfe51ef5c850e2fc27f9f811f9f2acd655 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Fri, 8 May 2015 14:41:06 +0200 Subject: Fix path conversion between 2Geom and Livarot (bzr r14059.2.6) --- src/livarot/PathCutting.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 12f2386b0..d6ad6c94a 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -434,17 +434,11 @@ void Path::LoadPath(Geom::Path const &path, Geom::Affine const &tr, bool doTran MoveTo( pathtr.initialPoint() ); - for(Geom::Path::const_iterator cit = pathtr.begin(); cit != pathtr.end_open(); ++cit) { + for(Geom::Path::const_iterator cit = pathtr.begin(); cit != pathtr.end(); ++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(); } } -- cgit v1.2.3