summaryrefslogtreecommitdiff
path: root/navit/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/route.c')
-rw-r--r--navit/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/route.c b/navit/route.c
index 6ddfae5cf..3b3bdd0eb 100644
--- a/navit/route.c
+++ b/navit/route.c
@@ -2319,7 +2319,7 @@ static void route_graph_change_traffic_distortion(struct route_graph *this, stru
* @brief Adds a turn restriction item to the route graph
*
* @param this The route graph to add to
- * @param item The item to add
+ * @param item The item to add, must be of `type_street_turn_restriction_no` or `type_street_turn_restriction_only`
*/
void route_graph_add_turn_restriction(struct route_graph *this, struct item *item) {
struct route_graph_point *pnt[4];
@@ -3526,6 +3526,8 @@ static int rm_attr_get(void *priv_data, enum attr_type attr_type, struct attr *a
if(mr->item.type==type_waypoint || mr->item.type == type_route_end) {
if(mr->str)
g_free(mr->str);
+ /* Build the text displayed close to the destination cursor.
+ * It will contain the sequence number of the waypoint (1, 2...) */
mr->str=g_strdup_printf("%d",route->reached_destinations_count+g_list_position(route->destinations,mr->dest)+1);
attr->u.str=mr->str;
return 1;