Fix:Core:Consider a segment with one or zero coordinates as incremental update
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 4 Jun 2009 13:29:41 +0000 (13:29 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 4 Jun 2009 13:29:41 +0000 (13:29 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2307 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/route.c

index 0910c06..66b8315 100644 (file)
@@ -1376,7 +1376,7 @@ route_path_add_item_from_graph(struct route_path *this, struct route_path *oldpa
        segment->ncoords=cd-segment->c;
        if (segment->ncoords <= 1) {
                g_free(segment);
-               return ret;
+               return 1;
        }
 
        /* We check if the route graph segment is part of a roundabout here, because this