summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 896a713)
raw | patch | inline | side by side (parent: 896a713)
author | jfbarraud <jfbarraud@users.sourceforge.net> | |
Sun, 1 Feb 2009 16:41:37 +0000 (16:41 +0000) | ||
committer | jfbarraud <jfbarraud@users.sourceforge.net> | |
Sun, 1 Feb 2009 16:41:37 +0000 (16:41 +0000) |
src/live_effects/lpe-knot.cpp | patch | blob | history |
index e369dcd95f6a7155db49cee75efd55a23291a82e..60371dce7e8ede45d04ffbafeafe7f34d8dbf258 100644 (file)
@@ -58,10 +58,10 @@ std::vector<Geom::Interval> complementOf(Geom::Interval I, std::vector<Geom::Int
for (unsigned i = 0; i<domain.size(); i++){
boost::optional<Geom::Interval> I1i = intersect(domain.at(i),I1);
- if (I1i) ret.push_back(I1i.get());
+ if (I1i && !I1i->isSingular()) ret.push_back(I1i.get());
boost::optional<Geom::Interval> I2i = intersect(domain.at(i),I2);
- if (I2i) ret.push_back(I2i.get());
- }
+ if (I2i && !I2i->isSingular()) ret.push_back(I2i.get());
+ }
return ret;
}