]> granicus.if.org Git - postgis/commitdiff
Per PR#139, change return count slightly in case of max recursion
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Sep 2017 18:34:12 +0000 (18:34 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Sep 2017 18:34:12 +0000 (18:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15658 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom.c

index ffc249857e83c7e19b032708417b17dc4c485a36..fb2e26ccdee81984760bfb462a2060d9f1371c20 100644 (file)
@@ -1991,7 +1991,7 @@ lwgeom_subdivide_recursive(const LWGEOM *geom, int maxvertices, int depth, LWCOL
        if ( depth > maxdepth )
        {
                lwcollection_add_lwgeom(col, lwgeom_clone_deep(geom));
-               return 0;
+               return 1;
        }
 
        nvertices = lwgeom_count_vertices(geom);