From ac7986575d96e85896971b8d7068d2ea0cbcb0ab Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 17 Apr 2008 09:15:33 +0000 Subject: [PATCH] update to latest 2geom. fixes LPE's ignoring the closing segment of a closed path --- src/2geom/path.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++); } -- 2.30.2