diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-07-13 19:00:42 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-07-13 19:00:42 +0000 |
commit | 868c324f2f6a5fae4de7cb8a51de7d9efcf73c4b (patch) | |
tree | 8ec794178376c441f3ecd9d997f293693671df0d /navit/search.c | |
parent | 76e5c0a2f38a8b9b370d46b849b139705a6ccced (diff) | |
download | navit-svn-868c324f2f6a5fae4de7cb8a51de7d9efcf73c4b.tar.gz |
Add:gui_internal:Added support for street searches
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1211 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/search.c')
-rw-r--r-- | navit/search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/navit/search.c b/navit/search.c index f4ddf494..0631389a 100644 --- a/navit/search.c +++ b/navit/search.c @@ -126,8 +126,10 @@ search_list_country_new(struct item *item) ret->item=*item; if (item_attr_get(item, attr_country_car, &attr)) ret->car=g_strdup(attr.u.str); - if (item_attr_get(item, attr_country_iso2, &attr)) + if (item_attr_get(item, attr_country_iso2, &attr)) { ret->iso2=g_strdup(attr.u.str); + ret->flag=g_strdup_printf("country_%s", ret->iso2); + } if (item_attr_get(item, attr_country_iso3, &attr)) ret->iso3=g_strdup(attr.u.str); if (item_attr_get(item, attr_country_name, &attr)) @@ -141,6 +143,7 @@ search_list_country_destroy(struct search_list_country *this_) g_free(this_->car); g_free(this_->iso2); g_free(this_->iso3); + g_free(this_->flag); g_free(this_->name); g_free(this_); } |