From 0d5ef51e8cd6dd6e03832e995cdae2a8c02c4da6 Mon Sep 17 00:00:00 2001 From: Pierre GRANDIN Date: Wed, 23 Aug 2017 08:54:21 -0700 Subject: Fixes displaying the heightline route info (#294) * Fixes displaying the heightline route info * Use cached copy for libpng / tomtom (#276) * Update build_tomtom_plugin.sh * Update build_tomtom_minimal.sh * Renamed the Links to fit navit repo --- navit/gui/internal/gui_internal_command.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/navit/gui/internal/gui_internal_command.c b/navit/gui/internal/gui_internal_command.c index 43e788c10..a91f69f5f 100644 --- a/navit/gui/internal/gui_internal_command.c +++ b/navit/gui/internal/gui_internal_command.c @@ -510,16 +510,16 @@ gui_internal_cmd2_route_height_profile(struct gui_priv *this, char *function, st int heightmap_installed = FALSE; msh=mapset_open(ms); while ((map=mapset_next(msh, 1))) { - struct attr name_attr; - if (map_get_attr(map, attr_name, &name_attr, NULL)){ - dbg(lvl_debug,"map name = %s\n",name_attr.u.str); - if (strstr(name_attr.u.str,".heightlines.bin")){ - dbg(lvl_info,"reading heightlines from map %s\n",name_attr.u.str); + struct attr data_attr; + if (map_get_attr(map, attr_data, &data_attr, NULL)){ + dbg(lvl_debug,"map name = %s\n",data_attr.u.str); + if (strstr(data_attr.u.str,".heightlines.bin")){ + dbg(lvl_info,"reading heightlines from map %s\n",data_attr.u.str); mr=map_rect_new(map, &sel); heightmap_installed = TRUE; } else { - dbg(lvl_debug,"ignoring map %s\n",name_attr.u.str); + dbg(lvl_debug,"ignoring map %s\n",data_attr.u.str); } } if (mr) { -- cgit v1.2.1