From 0639aaafb251d607d9b646ab83f33bda505983ed Mon Sep 17 00:00:00 2001 From: jfbarraud Date: Sun, 1 Feb 2009 16:41:37 +0000 Subject: [PATCH] bug fix: handle paths with more than one component. --- src/live_effects/lpe-knot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index e369dcd95..60371dce7 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -58,10 +58,10 @@ std::vector complementOf(Geom::Interval I, std::vector I1i = intersect(domain.at(i),I1); - if (I1i) ret.push_back(I1i.get()); + if (I1i && !I1i->isSingular()) ret.push_back(I1i.get()); boost::optional I2i = intersect(domain.at(i),I2); - if (I2i) ret.push_back(I2i.get()); - } + if (I2i && !I2i->isSingular()) ret.push_back(I2i.get()); + } return ret; } -- 2.30.2