Code

update to latest 2geom. fixes LPE's ignoring the closing segment of a closed path
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 17 Apr 2008 09:15:33 +0000 (09:15 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 17 Apr 2008 09:15:33 +0000 (09:15 +0000)
src/2geom/path.h

index fee96a86a456cd4b3670e22028152408defb51cc..5eecbff0bb35eb943b2427134daaa7cf0160f745 100644 (file)
@@ -637,8 +637,8 @@ public:
     Piecewise<D2<SBasis> > ret;
     ret.push_cut(0);
     unsigned i = 1;
-    // ignore that path is closed or open. pw<d2<>> is always open.
-    for(const_iterator it = begin(); it != end(); ++it) {
+    // pw<d2<>> 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++);
       }