From 509953aa0d01381599625a015a33ae48db570267 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 30 Oct 2017 20:26:52 +0000 Subject: [PATCH] Correctly handle in-place collapse of interior rings, closes #3922 git-svn-id: http://svn.osgeo.org/postgis/trunk@16082 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index 8dfd99b81..9d52572a0 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -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 { -- 2.40.0