summaryrefslogtreecommitdiff
path: root/navit/map/binfile
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-04 15:29:09 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-04 15:29:09 +0000
commita99883eb809d407ac418a4670b91eb7dc803b423 (patch)
treef750224216f7ba8b426bb8d8bc46ff1a52819f59 /navit/map/binfile
parente6e8d5d26e3397da8added1b96b40cf19240aee7 (diff)
downloadnavit-a99883eb809d407ac418a4670b91eb7dc803b423.tar.gz
Fix:map_binfile:Do not return housenumber search result in unindexed search if street name is not specified for a given item.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5474 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map/binfile')
-rw-r--r--navit/map/binfile/binfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/map/binfile/binfile.c b/navit/map/binfile/binfile.c
index a42c9ecfd..191e2e1ee 100644
--- a/navit/map/binfile/binfile.c
+++ b/navit/map/binfile/binfile.c
@@ -2317,7 +2317,8 @@ binmap_search_get_item(struct map_search_priv *map_search)
{
if (has_house_number)
{
- if (!linguistics_compare(at.u.str, map_search->search.u.str, mode))
+ struct attr at2;
+ if ( (map_search->mode!=2 || binfile_attr_get(it->priv_data, attr_street_name, &at2)) && !linguistics_compare(at.u.str, map_search->search.u.str, mode))
{
if (!duplicate(map_search, it, attr_house_number))
{