From: Mark Cave-Ayland Date: Sun, 5 Oct 2008 17:33:03 +0000 (+0000) Subject: Fix stupid mistake in the liblwgeom parser... X-Git-Tag: 1.4.0b1~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=971be1e74aee6a681f5bc7c13adab138efca34ee;p=postgis Fix stupid mistake in the liblwgeom parser... git-svn-id: http://svn.osgeo.org/postgis/trunk@3067 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgparse.c b/liblwgeom/lwgparse.c index df81045e3..14612d8fa 100644 --- a/liblwgeom/lwgparse.c +++ b/liblwgeom/lwgparse.c @@ -288,14 +288,14 @@ popc(void) } /* If the odd number point check has been enabled, perform it */ - if (parser_check_flags & PARSER_CHECK_CLOSURE) { + if (parser_check_flags & PARSER_CHECK_ODD) { if(isodd != -1 && the_geom.stack->uu.nn.num % 2 != isodd) { error("geometry must have an odd number of points"); } } /* If the polygon closure check has been enabled, perform it */ - if (parser_check_flags & PARSER_CHECK_ODD) { + if (parser_check_flags & PARSER_CHECK_CLOSURE) { if ( checkclosed && first_point && last_point) { if ( memcmp(first_point, last_point, sizeof(double)*the_geom.ndims) )