diff options
author | jkoan <jkoan@users.noreply.github.com> | 2020-12-19 17:13:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 17:13:52 +0100 |
commit | bf588837d97c4cbd6f8bf685e865ad1abfb10ce8 (patch) | |
tree | be7ba25c2473e87886c1cd77e982be0c4810084e | |
parent | d5db9b4e2603a8662da0f1b29886437ecd2adc20 (diff) | |
parent | 3ab540c7ea34acec169e4a6ea43429edfaf41ef3 (diff) | |
download | navit-svg_debug.tar.gz |
Merge branch 'trunk' into svg_debugsvg_debug
-rw-r--r-- | navit/route.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/navit/route.c b/navit/route.c index 858e51406..8e2ef91ec 100644 --- a/navit/route.c +++ b/navit/route.c @@ -1047,7 +1047,8 @@ struct map_selection * route_get_selection(struct route * this_) { int i = 0; GList *tmp; - c[i++] = this_->pos->c; + if (this_->pos) + c[i++] = this_->pos->c; tmp = this_->destinations; while (tmp) { struct route_info *dst = tmp->data; @@ -3157,17 +3158,12 @@ static void route_graph_build_idle(struct route_graph *rg, struct vehicleprofile * add any routing information to the route graph - this has to be done via the route_graph_flood() * function. * - * The function does not create a graph covering the whole map, but only covering the rectangle - * between c1 and c2. - * * @param ms The mapset to build the route graph from - * @param c The coordinates of the destination or next waypoint - * @param c1 Corner 1 of the rectangle to use from the map - * @param c2 Corner 2 of the rectangle to use from the map + * @param c An array of coordinates for the current position, waypoints (if any) and destination + * @param count Number of coordinates in `c` * @param done_cb The callback which will be called when graph is complete * @return The new route graph. */ -// FIXME documentation does not match argument list static struct route_graph *route_graph_build(struct mapset *ms, struct coord *c, int count, struct callback *done_cb, int async, struct vehicleprofile *profile) { |