From 03dc6cbb48ef65111b0d64205cace1d18a7f10cd Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 22 Sep 2004 17:13:26 +0000 Subject: [PATCH] indentation fixes git-svn-id: http://svn.osgeo.org/postgis/trunk@885 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_api.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lwgeom/lwgeom_api.c b/lwgeom/lwgeom_api.c index afdcf6c6f..0f6332fcc 100644 --- a/lwgeom/lwgeom_api.c +++ b/lwgeom/lwgeom_api.c @@ -614,22 +614,23 @@ void getPoint3d_p(POINTARRAY *pa, int n, char *point) // copies a point from the point array into the parameter point // z value (if present is not returned) -// NOTE: point is a real POINT3D *not* a pointer -POINT2D getPoint2d(POINTARRAY *pa, int n) +// NOTE: point is a real POINT2D *not* a pointer +POINT2D +getPoint2d(POINTARRAY *pa, int n) { - POINT2D result; - int size; + POINT2D result; + int size; - if ( (n<0) || (n>=pa->npoints)) - { - return result; //error - } + if ( (n<0) || (n>=pa->npoints)) + { + return result; //error + } - size = pointArray_ptsize(pa); + size = pointArray_ptsize(pa); - // this does x,y - memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 ); - return result; + // this does x,y + memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 ); + return result; } // copies a point from the point array into the parameter point -- 2.40.0