From: Sandro Santilli Date: Fri, 6 Mar 2015 10:05:19 +0000 (+0000) Subject: Fix build after gbox calculations centralization (r13313) X-Git-Tag: 2.2.0rc1~611 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=039990deb74ea42754482827dacd940bb339406f;p=postgis Fix build after gbox calculations centralization (r13313) NOTE: test for ST_ClipByBox2D still fails git-svn-id: http://svn.osgeo.org/postgis/trunk@13319 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c index 70f444aa9..dcf735211 100644 --- a/postgis/lwgeom_geos.c +++ b/postgis/lwgeom_geos.c @@ -1690,7 +1690,7 @@ Datum ST_ClipByBox2d(PG_FUNCTION_ARGS) } /* if bbox1 is covered by bbox2, return lwgeom1 */ - if ( gbox_contains_2d(box2, box1) ) + if ( gbox_contains_2d(bbox2, bbox1) ) { lwgeom_free(lwgeom1); PG_RETURN_POINTER(geom1);