]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in lwpoint_serialize_size
authorSandro Santilli <strk@keybit.net>
Fri, 31 Dec 2004 11:30:38 +0000 (11:30 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 31 Dec 2004 11:30:38 +0000 (11:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1207 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwpoint.c

index 36c02ab8763f5625d63d5ca771927d45a02340a4..40bd00cffe6f18c8faabb609f9d8d110b1e3b508 100644 (file)
@@ -140,7 +140,7 @@ lwpoint_serialize_size(LWPOINT *point)
 #endif
 
        if ( point->SRID != -1 ) size += 4; // SRID
-       if ( TYPE_HASBBOX(point->type) ) size += sizeof(BOX2DFLOAT4);
+       if ( point->bbox ) size += sizeof(BOX2DFLOAT4);
 
        size += TYPE_NDIMS(point->type) * sizeof(double); // point