diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-07-14 05:30:15 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-07-14 05:30:15 +0000 |
| commit | 4d9217f4f7b6e5b11f88af486e8659f539dc1300 (patch) | |
| tree | 4e554ba1a27ff9ef8d3d3299cca9eb303c73a726 /src/libavoid/visibility.cpp | |
| parent | fixed warnings (diff) | |
| download | inkscape-4d9217f4f7b6e5b11f88af486e8659f539dc1300.tar.gz inkscape-4d9217f4f7b6e5b11f88af486e8659f539dc1300.zip | |
* src/sp-conn-end-pair.cpp, src/connector-context.cpp,
src/document.cpp, src/libavoid/*:
Update libavoid with upstream fixes, optimisations and new features.
(bzr r1411)
Diffstat (limited to 'src/libavoid/visibility.cpp')
| -rw-r--r-- | src/libavoid/visibility.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libavoid/visibility.cpp b/src/libavoid/visibility.cpp index 71c8b1c1b..f540baf21 100644 --- a/src/libavoid/visibility.cpp +++ b/src/libavoid/visibility.cpp @@ -316,14 +316,6 @@ static bool sweepVisible(EdgeSet& T, VertInf *currInf, VertInf *lastInf, *blocker = (*closestIt).vInf1->id.objID; return false; } - else - { - return true; - } - } - else - { - return true; } } else @@ -350,9 +342,9 @@ static bool sweepVisible(EdgeSet& T, VertInf *currInf, VertInf *lastInf, return false; } } - return true; } } + return true; } @@ -443,7 +435,7 @@ void vertexSweep(VertInf *vert) continue; } - Point xaxis = { DBL_MAX, centerInf->point.y }; + Point xaxis(DBL_MAX, centerInf->point.y); if (segmentIntersect(centerInf->point, xaxis, kPrev->point, k->point)) { |
