summaryrefslogtreecommitdiffstats
path: root/src/livarot
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-05-08 12:41:06 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-05-08 12:41:06 +0000
commit6ae198bfe51ef5c850e2fc27f9f811f9f2acd655 (patch)
treefa0d0eb297b4c5a14359a941d77f13b09636e2e5 /src/livarot
parentFix ellipse problems (diff)
downloadinkscape-6ae198bfe51ef5c850e2fc27f9f811f9f2acd655.tar.gz
inkscape-6ae198bfe51ef5c850e2fc27f9f811f9f2acd655.zip
Fix path conversion between 2Geom and Livarot
(bzr r14059.2.6)
Diffstat (limited to 'src/livarot')
-rw-r--r--src/livarot/PathCutting.cpp8
1 files changed, 1 insertions, 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();
}
}