From f674bc9093aa673d82810752556d028b716f932d Mon Sep 17 00:00:00 2001 From: strk Date: Thu, 25 Sep 2014 15:21:45 +0000 Subject: [PATCH] Fix bug in RectangleIntersection (was cought by testsuite too!) git-svn-id: http://svn.osgeo.org/geos/trunk@4023 5242fede-7e19-0410-aef8-94bd7d2200fb --- src/operation/intersection/RectangleIntersection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operation/intersection/RectangleIntersection.cpp b/src/operation/intersection/RectangleIntersection.cpp index 32458d53..f7e031b1 100644 --- a/src/operation/intersection/RectangleIntersection.cpp +++ b/src/operation/intersection/RectangleIntersection.cpp @@ -470,7 +470,7 @@ RectangleIntersection::clip_polygon_to_polygons(const geom::Polygon * g, const Coordinate rectCorner(rect.xmin(), rect.ymin()); if ( CGAlgorithms::locatePointInRing(rectCorner, *g->getExteriorRing()->getCoordinatesRO()) - == Location::EXTERIOR ) + != Location::INTERIOR ) { return; } -- 2.11.4.GIT