]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in lwgeom_getSRID()
authorSandro Santilli <strk@keybit.net>
Tue, 24 Aug 2004 13:45:05 +0000 (13:45 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 Aug 2004 13:45:05 +0000 (13:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@734 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_api.c

index 22428b1e6af8b6c2a55153d4df3620c34d609090..f6a8184b0236dd62cc79bdc5c96205ab55c8a8e7 100644 (file)
@@ -2324,7 +2324,7 @@ int lwgeom_getSRID(LWGEOM *lwgeom)
                loc += sizeof(BOX2DFLOAT4);
        }
 
-       return get_int32(lwgeom->data);
+       return get_int32(loc);
 }
 
 // Set the SRID of a LWGEOM