From: jfbarraud Date: Sun, 1 Feb 2009 16:41:37 +0000 (+0000) Subject: bug fix: handle paths with more than one component. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0639aaafb251d607d9b646ab83f33bda505983ed;p=inkscape.git bug fix: handle paths with more than one component. --- 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; }