summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-12-03 12:25:47 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-12-03 12:25:47 +0000
commitdaa9d63a77933378d39854f5d814a60c93f7ce71 (patch)
treee5287b0b2b238b4cbdb50cda4ce7cc932b4a39ea
parentb2824ed01bb32a10fdfe7904fe9ffcc38f610476 (diff)
downloadnavit-svn-daa9d63a77933378d39854f5d814a60c93f7ce71.tar.gz
Fix:map_binfile:Corrected search bug
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2826 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/map/binfile/binfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/map/binfile/binfile.c b/navit/map/binfile/binfile.c
index 74c7284c..a373358e 100644
--- a/navit/map/binfile/binfile.c
+++ b/navit/map/binfile/binfile.c
@@ -1181,7 +1181,7 @@ binmap_search_get_item(struct map_search_priv *map_search)
case attr_town_name:
case attr_district_name:
case attr_town_or_district_name:
- if (item_is_town(*it) && map_search->search->type != attr_district_name) {
+ if (item_is_town(*it) && !item_is_district(*it) && map_search->search->type != attr_district_name) {
struct attr at;
if (binfile_attr_get(it->priv_data, attr_town_name_match, &at) || binfile_attr_get(it->priv_data, attr_town_name, &at)) {
if (!ascii_cmp(at.u.str, map_search->search->u.str, map_search->partial)) {