From c338669dcbf0f667a84a7cd0359d0fe48ae27cfb Mon Sep 17 00:00:00 2001 From: rikky Date: Wed, 23 Mar 2011 20:25:11 +0000 Subject: [PATCH] Fix:map/binfile:Workaround for finding streets with labels but no name (i.e. pedestrian) git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4388 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/map/binfile/binfile.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/navit/navit/map/binfile/binfile.c b/navit/navit/map/binfile/binfile.c index 10d2277..3c2e70e 100644 --- a/navit/navit/map/binfile/binfile.c +++ b/navit/navit/map/binfile/binfile.c @@ -2073,6 +2073,13 @@ binmap_search_get_item(struct map_search_priv *map_search) int i,match=0; char *str=g_strdup(at.u.str); char *word=str; + struct attr at_streetname; + if (!binfile_attr_get(it->priv_data, attr_street_name, &at_streetname)) + { + at_streetname.type = attr_street_name; + at_streetname.u.str = g_strdup(at.u.str); + binfile_attr_set(it->priv_data, &at_streetname, change_mode_modify); + } do { for (i = 0 ; i < 3 ; i++) { char *name=linguistics_expand_special(word,i); -- 2.7.4