From: johanengelen Date: Thu, 17 Apr 2008 09:15:33 +0000 (+0000) Subject: update to latest 2geom. fixes LPE's ignoring the closing segment of a closed path X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac7986575d96e85896971b8d7068d2ea0cbcb0ab;p=inkscape.git update to latest 2geom. fixes LPE's ignoring the closing segment of a closed path --- 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++); }