From: Paul Ramsey Date: Mon, 30 Oct 2017 20:26:52 +0000 (+0000) Subject: Correctly handle in-place collapse of interior rings, closes #3922 X-Git-Tag: 2.5.0alpha~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509953aa0d01381599625a015a33ae48db570267;p=postgis 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 --- 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 {