Fixes #1309
git-svn-id: http://svn.osgeo.org/postgis/trunk@8336
b70326c6-7e19-0410-871a-
916f4a2858ee
gbox->mmin = next_float_down(gbox->mmin);
gbox->mmax = next_float_up(gbox->mmax);
- gbox->zmin = next_float_down(gbox->zmin);
- gbox->zmax = next_float_up(gbox->zmax);
+ if ( FLAGS_GET_Z(gbox->flags) )
+ {
+ gbox->zmin = next_float_down(gbox->zmin);
+ gbox->zmax = next_float_up(gbox->zmax);
+ }
}
int gserialized_read_gbox_p(const GSERIALIZED *g, GBOX *gbox)