From 599fbb376d2c1290c550417622056f27a2742cf8 Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 20 Jul 2011 21:22:43 +0000 Subject: [PATCH] Fix:maptool:Corrected return values for point inside boundary git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4652 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/maptool/geom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/navit/navit/maptool/geom.c b/navit/navit/maptool/geom.c index 03a3699..938852a 100644 --- a/navit/navit/maptool/geom.c +++ b/navit/navit/maptool/geom.c @@ -368,15 +368,15 @@ geom_poly_segments_point_inside(GList *in, struct coord *c) } if (closed_matches) { if (closed_matches & 1) - return 0; - else return 1; + else + return 0; } if (open_matches) { if (open_matches & 1) - return 0; - else return -1; + else + return 0; } return 0; } -- 2.7.4