diff options
author | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2017-08-23 08:54:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 08:54:21 -0700 |
commit | 0d5ef51e8cd6dd6e03832e995cdae2a8c02c4da6 (patch) | |
tree | a5a970d16ea792c0c5ad6241b50575deca3015b4 /navit/gui/internal/gui_internal_command.c | |
parent | bf251bb6d609fb4e500c7a72b7c432570e7c467c (diff) | |
download | navit-0d5ef51e8cd6dd6e03832e995cdae2a8c02c4da6.tar.gz |
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
Diffstat (limited to 'navit/gui/internal/gui_internal_command.c')
-rw-r--r-- | navit/gui/internal/gui_internal_command.c | 12 |
1 files 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) { |