From: Paul Ramsey Date: Tue, 12 Jun 2018 12:56:10 +0000 (+0000) Subject: Fix flags in case where a boxless geom comes in with a "has box" set of flags. X-Git-Tag: 2.3.8~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=703cc572483a7e0943337ce788d814700f875d4a;p=postgis Fix flags in case where a boxless geom comes in with a "has box" set of flags. Closes #4707 git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@16614 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/g_serialized.c b/liblwgeom/g_serialized.c index 4c7677a31..167ed84d3 100644 --- a/liblwgeom/g_serialized.c +++ b/liblwgeom/g_serialized.c @@ -952,6 +952,8 @@ GSERIALIZED* gserialized_from_lwgeom(LWGEOM *geom, size_t *size) */ if ( geom->bbox ) FLAGS_SET_BBOX(geom->flags, 1); + else + FLAGS_SET_BBOX(geom->flags, 0); /* Set up the uint8_t buffer into which we are going to write the serialized geometry. */ expected_size = gserialized_from_lwgeom_size(geom);