From 65df649e9a23afc4c5baf56c95bbdca4c9857864 Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 27 Feb 2008 22:01:31 +0000 Subject: [PATCH] Fix:Core:Search only in active maps git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@924 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/src/mapset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/navit/src/mapset.c b/navit/src/mapset.c index e118bb9..5c805cb 100644 --- a/navit/src/mapset.c +++ b/navit/src/mapset.c @@ -1,3 +1,4 @@ +#include #include #include #include "debug.h" @@ -100,7 +101,9 @@ mapset_search_get_item(struct mapset_search *this) while (!(ret=map_search_get_item(this->ms))) { if (this->search_attr->type >= attr_country_all && this->search_attr->type <= attr_country_name) break; - this->map=g_list_next(this->map); + do { + this->map=g_list_next(this->map); + } while (this->map && ! map_get_active(this->map->data)); if (! this->map) break; map_search_destroy(this->ms); -- 2.7.4