summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 093eedd)
raw | patch | inline | side by side (parent: 093eedd)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 17 Apr 2008 09:15:33 +0000 (09:15 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 17 Apr 2008 09:15:33 +0000 (09:15 +0000) |
src/2geom/path.h | patch | blob | history |
diff --git a/src/2geom/path.h b/src/2geom/path.h
index fee96a86a456cd4b3670e22028152408defb51cc..5eecbff0bb35eb943b2427134daaa7cf0160f745 100644 (file)
--- a/src/2geom/path.h
+++ b/src/2geom/path.h
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++);
}