From 4d9217f4f7b6e5b11f88af486e8659f539dc1300 Mon Sep 17 00:00:00 2001 From: mjwybrow Date: Fri, 14 Jul 2006 05:30:15 +0000 Subject: * 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) --- src/libavoid/visibility.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/libavoid/visibility.cpp') 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)) { -- cgit v1.2.3