summaryrefslogtreecommitdiff
path: root/navit/navigation.c
diff options
context:
space:
mode:
authorjandegr <jandegr@users.noreply.github.com>2015-10-02 21:03:31 +0200
committerjandegr <jandegr@users.noreply.github.com>2015-10-02 21:03:31 +0200
commit4ee7e729613f1c7ed76ba3cee38ab41227e80201 (patch)
tree07a93bb806d97ae8fd390dbfed3b925a629193f9 /navit/navigation.c
parent5537028688c8dbeb300396f98958a8313b2e800b (diff)
downloadnavit-4ee7e729613f1c7ed76ba3cee38ab41227e80201.tar.gz
handle itm->prev
Diffstat (limited to 'navit/navigation.c')
-rw-r--r--navit/navigation.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/navigation.c b/navit/navigation.c
index 7a04fd36f..dc07773c0 100644
--- a/navit/navigation.c
+++ b/navit/navigation.c
@@ -1704,7 +1704,9 @@ navigation_itm_new(struct navigation *this_, struct item *routeitem)
if(item_attr_get(routeitem, attr_route, &route_attr))
graph_map = route_get_graph_map(route_attr.u.route);
if (graph_map )
- {
+ {
+ if (this_->last)
+ ret->prev=this_->last;
navigation_itm_ways_update(ret,graph_map);
}
@@ -1718,7 +1720,7 @@ navigation_itm_new(struct navigation *this_, struct item *routeitem)
* If present, obtain exit_ref, exit_label and exit_to
* from the map.
*/
- if ((streetitem->type == type_ramp) || (ret->way.next && ret->way.next->next && ((streetitem->type == type_highway_land)
+ if ((streetitem->type == type_ramp) || (ret->way.next && ((streetitem->type == type_highway_land)
|| (streetitem->type == type_highway_city) || (streetitem->type == type_street_n_lanes))))
{
struct map_selection mselexit;