]> granicus.if.org Git - postgis/commitdiff
Fix build after gbox calculations centralization (r13313)
authorSandro Santilli <strk@keybit.net>
Fri, 6 Mar 2015 10:05:19 +0000 (10:05 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 6 Mar 2015 10:05:19 +0000 (10:05 +0000)
NOTE: test for ST_ClipByBox2D still fails

git-svn-id: http://svn.osgeo.org/postgis/trunk@13319 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c

index 70f444aa907bf74d3eaf368fd39806f2c4398152..dcf735211947b45ef6ee98d9fc9be9edd0ef4396 100644 (file)
@@ -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);