diff options
| author | JF Barraud <jf.barraud@gmail.com> | 2008-03-08 21:59:59 +0000 |
|---|---|---|
| committer | jfbarraud <jfbarraud@users.sourceforge.net> | 2008-03-08 21:59:59 +0000 |
| commit | 001cdbc5a8694b524c84e34d17c3f8296b1a5943 (patch) | |
| tree | 7d0c480536b2ca9fb6ace76e339847da3ce67d72 /src/2geom/sweep.cpp | |
| parent | Fixed ctor intialization order (diff) | |
| download | inkscape-001cdbc5a8694b524c84e34d17c3f8296b1a5943.tar.gz inkscape-001cdbc5a8694b524c84e34d17c3f8296b1a5943.zip | |
2Geom fix: derivative of order 1 bezier, and an out of range bug affecting intersection computation.
(bzr r5000)
Diffstat (limited to 'src/2geom/sweep.cpp')
| -rw-r--r-- | src/2geom/sweep.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/2geom/sweep.cpp b/src/2geom/sweep.cpp index 08674ab2f..b9ef71b5c 100644 --- a/src/2geom/sweep.cpp +++ b/src/2geom/sweep.cpp @@ -82,6 +82,7 @@ std::vector<std::vector<unsigned> > sweep_bounds(std::vector<Rect> a, std::vecto open[n].push_back(ix); } i[n]++; + if(i[n]>=events[n].size()) {break;} n = (events[!n][i[!n]] < events[n][i[n]]) ? !n : n; } return pairs; |
