diff options
| author | JF Barraud <jf.barraud@gmail.com> | 2009-02-01 16:41:37 +0000 |
|---|---|---|
| committer | jfbarraud <jfbarraud@users.sourceforge.net> | 2009-02-01 16:41:37 +0000 |
| commit | f7f5161e3950142791ad07c5de2c954b91d575fd (patch) | |
| tree | 4bfabc387cfe8a8e4c4ada2ce08d468007998df0 /src | |
| parent | add support for layers (diff) | |
| download | inkscape-f7f5161e3950142791ad07c5de2c954b91d575fd.tar.gz inkscape-f7f5161e3950142791ad07c5de2c954b91d575fd.zip | |
bug fix: handle paths with more than one component.
(bzr r7211)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-knot.cpp | 6 |
1 files 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<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; } |
