summaryrefslogtreecommitdiff
path: root/navit/map.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-13 14:33:22 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-13 14:33:22 +0000
commit4ce6579c3bffc47d915145dc741abd24e7045f67 (patch)
tree4caccd3e25bb50339d9a41497b4cc8a1cdac105b /navit/map.c
parente4d7331879fba158de42f0904ae62f3532eb12c0 (diff)
downloadnavit-4ce6579c3bffc47d915145dc741abd24e7045f67.tar.gz
Add:binding_bus:Cleanup and Search functions
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2755 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map.c')
-rw-r--r--navit/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/map.c b/navit/map.c
index c14d2b45a..8a6408b6b 100644
--- a/navit/map.c
+++ b/navit/map.c
@@ -393,7 +393,7 @@ map_search_new(struct map *m, struct item *item, struct attr *search_attr, int p
this_=g_new0(struct map_search,1);
this_->m=m;
this_->search_attr=*search_attr;
- if (search_attr->type >= attr_country_all && search_attr->type <= attr_country_name)
+ if ((search_attr->type >= attr_country_all && search_attr->type <= attr_country_name) || search_attr->type == attr_country_id)
this_->priv=country_search_new(&this_->search_attr, partial);
else {
if (m->meth.map_search_new) {
@@ -429,7 +429,7 @@ map_search_get_item(struct map_search *this_)
if (! this_)
return NULL;
- if (this_->search_attr.type >= attr_country_all && this_->search_attr.type <= attr_country_name)
+ if ((this_->search_attr.type >= attr_country_all && this_->search_attr.type <= attr_country_name) || this_->search_attr.type == attr_country_id)
return country_search_get_item(this_->priv);
ret=this_->m->meth.map_search_get_item(this_->priv);
if (ret)