Fix:maptool:Corrected return values for point inside boundary
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 20 Jul 2011 21:22:43 +0000 (21:22 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 20 Jul 2011 21:22:43 +0000 (21:22 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4652 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maptool/geom.c

index 03a3699..938852a 100644 (file)
@@ -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;
 }