summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2geom/path.h4
1 files 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<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++);
}