]> granicus.if.org Git - postgis/commitdiff
Fixed some introduced misorderings of func declaration/body.
authorSandro Santilli <strk@keybit.net>
Thu, 17 Feb 2005 15:39:17 +0000 (15:39 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 17 Feb 2005 15:39:17 +0000 (15:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1402 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/measures.c

index 66c72eb8cb99a77ff95dffed324336b0ec28e4dd..7fa33a1670f4bcbde73b92540ffa49187983361b 100644 (file)
@@ -368,8 +368,8 @@ double distance2d_point_point(LWPOINT *point1, LWPOINT *point2)
 double distance2d_point_line(LWPOINT *point, LWLINE *line)
 {
        POINT2D p;
-       getPoint2d_p(point->point, 0, &p);
        POINTARRAY *pa = line->points;
+       getPoint2d_p(point->point, 0, &p);
        return distance2d_pt_ptarray(&p, pa);
 }
 
@@ -386,9 +386,10 @@ double distance2d_line_line(LWLINE *line1, LWLINE *line2)
 double distance2d_point_poly(LWPOINT *point, LWPOLY *poly)
 {
        POINT2D p;
-       getPoint2d_p(point->point, 0, &p);
        int i;
 
+       getPoint2d_p(point->point, 0, &p);
+
 #ifdef PGIS_DEBUG
        lwnotice("distance2d_point_poly called");
 #endif