From 4d1fafa2b672655d51165358bb533383f8af0698 Mon Sep 17 00:00:00 2001 From: Ralf Gerlich Date: Wed, 6 Aug 2008 15:21:59 +0200 Subject: [PATCH] Sign bug in calc_point_inside() --- src/Lib/Geometry/poly_support.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lib/Geometry/poly_support.cxx b/src/Lib/Geometry/poly_support.cxx index 935daa71..05d4e64c 100644 --- a/src/Lib/Geometry/poly_support.cxx +++ b/src/Lib/Geometry/poly_support.cxx @@ -681,7 +681,7 @@ static void calc_point_inside( TGContourNode *node, TGPolygon &p ) { if (diff<=8.0*SG_EPSILON) { continue; } - yline=point_it->y()+diff/2.0; + yline=point_it->y()-diff/2.0; // cout << "calc_point_inside() " << allpoints.size() << " points "; // copy(allpoints.begin(), allpoints.end(), ostream_iterator(cout, " "));