From: Paul Ramsey Date: Thu, 1 Oct 2009 23:54:58 +0000 (+0000) Subject: Fix boner error X-Git-Tag: 1.5.0b1~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e84c82b667ec22a7d7bbd68fb23d554d504d4de7;p=postgis Fix boner error git-svn-id: http://svn.osgeo.org/postgis/trunk@4576 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index f4d38b885..6e84c84c8 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -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;