diff options
author | lains <lains@caramail.com> | 2018-08-21 19:05:33 +0200 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-08-21 19:05:33 +0200 |
commit | 8bfc53427cae358a6b747f9c71d91bcc78e8dd65 (patch) | |
tree | f7b88fb2b362db15f1b916ff4b7e6da4edaa0735 /navit/route.c | |
parent | 704679b9066e160063ce5e2118b88ea0ed01f6ad (diff) | |
download | navit-8bfc53427cae358a6b747f9c71d91bcc78e8dd65.tar.gz |
Refactor:gui/internal: Add pointer and label when using function "view on map" (#631)
* Factorizing gui_internal_cmd_results_to_map() to also highlight points selected by command "View on map"
* Adding comments on displayed text for type_waypoint and type_route_end
* Adding comments
* Restoring zoom_to_rect in gui_internal_cmd_results_to_map()
* Making zoom_to_rect conditional, moving results_map preparation code to a dedicated function
* Moving "search_results" map preparation into a dedicated function
* Removing unused var
* Adding doxygen comments and disabling widget dealloc (causes segfault)
* Fixing segfault at next do_drawy() when adding pointer for view on map
* Reformatting labels to be displayed in a compact square area rather than all on a line
* Applying astyle to comply to ci_sanity_checks.sh
* Handling newlines in labels associated to element_circle
* Fixing hardcoded nblines
* Moving multi-line label processing to a dedicated function multiline_label_draw()
* Rework on arg naming to line-up with other simular functions. Minor update on doxygen comments
* Moving unsigned int sqrt calculation to utils
* Minor improvement of comment
* Fixing typo on comment
* Also applying size xslt processing to layer itemgra
This allows to also process the size of item_types="found_item", which is used by "View on map" and "Show results on map"
Diffstat (limited to 'navit/route.c')
-rw-r--r-- | navit/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/route.c b/navit/route.c index 116040857..453afa0d1 100644 --- a/navit/route.c +++ b/navit/route.c @@ -3267,6 +3267,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; |