]> granicus.if.org Git - postgis/commitdiff
Fix boner error
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 1 Oct 2009 23:54:58 +0000 (23:54 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 1 Oct 2009 23:54:58 +0000 (23:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4576 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c

index f4d38b885bef36c0e62f5cbc2eeb919fe3037fae..6e84c84c85d14ea62113be00cec77ad624442fbc 100644 (file)
@@ -1387,8 +1387,8 @@ double lwgeom_distance_sphere(LWGEOM *lwgeom1, LWGEOM *lwgeom2, GBOX *gbox1, GBO
        }
 
        /* Polygon/polygon case, if start point-in-poly, return zero, else return distance. */
-       if( ( type1 == POLYGONTYPE && type2 == LINETYPE ) || 
-           ( type2 == POLYGONTYPE && type1 == LINETYPE ) )
+       if( ( type1 == POLYGONTYPE && type2 == POLYGONTYPE ) || 
+           ( type2 == POLYGONTYPE && type1 == POLYGONTYPE ) )
        {
                POINT2D p;
                LWPOLY *lwpoly1 = (LWPOLY*)lwgeom1;