From 971be1e74aee6a681f5bc7c13adab138efca34ee Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sun, 5 Oct 2008 17:33:03 +0000 Subject: [PATCH] Fix stupid mistake in the liblwgeom parser... git-svn-id: http://svn.osgeo.org/postgis/trunk@3067 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ) -- 2.50.1