]> granicus.if.org Git - postgis/commitdiff
Correctly handle in-place collapse of interior rings, closes #3922
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 30 Oct 2017 20:26:52 +0000 (20:26 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 30 Oct 2017 20:26:52 +0000 (20:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16082 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom.c

index 8dfd99b81c426bc508324d5b7894f2bbeff31e6d..9d52572a0a70d40973ad4dda4e03b6250eb19ca2 100644 (file)
@@ -2178,7 +2178,7 @@ lwgeom_grid_in_place(LWGEOM *geom, const gridspec *grid)
                                /* Skip bad rings */
                                if (pa->npoints >= 4)
                                {
-                                       j++;
+                                       ply->rings[j++] = pa;
                                }
                                else
                                {