From 88c4340409976448600efbfaf7a77f1208a53327 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 17 Apr 2008 09:15:33 +0000 Subject: update to latest 2geom. fixes LPE's ignoring the closing segment of a closed path (bzr r5461) --- src/2geom/path.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/2geom/path.h b/src/2geom/path.h index fee96a86a..5eecbff0b 100644 --- a/src/2geom/path.h +++ b/src/2geom/path.h @@ -637,8 +637,8 @@ public: Piecewise > ret; ret.push_cut(0); unsigned i = 1; - // ignore that path is closed or open. pw> is always open. - for(const_iterator it = begin(); it != end(); ++it) { + // pw> is always open. so if path is closed, add closing segment as well to pwd2. + for(const_iterator it = begin(); it != end_default(); ++it) { if (!it->isDegenerate()) { ret.push(it->toSBasis(), i++); } -- cgit v1.2.3