From ab6d8ca870aaeabcfe991780496cf914f4c4c1fe Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 7 Jan 2005 10:26:45 +0000 Subject: [PATCH] variable declaration cleanups. git-svn-id: http://svn.osgeo.org/postgis/trunk@1247 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_functions_analytic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwgeom/lwgeom_functions_analytic.c b/lwgeom/lwgeom_functions_analytic.c index 048087276..73f6199b6 100644 --- a/lwgeom/lwgeom_functions_analytic.c +++ b/lwgeom/lwgeom_functions_analytic.c @@ -540,11 +540,11 @@ ptarray_grid(POINTARRAY *pa, gridspec *grid) for (pn=0; pnnpoints; pn++) { - getPoint2d_p(pa, pn, &pbuf); - POINT2D *lastpoint = NULL; POINT2D *lastpoint2 = NULL; + getPoint2d_p(pa, pn, &pbuf); + if ( grid->xsize ) pbuf.x = rint((pbuf.x - grid->ipx)/grid->xsize) * grid->xsize + grid->ipx; -- 2.50.1