git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@924
ffa7fe5e-494d-0410-b361-
a75ebd5db220
+#include <string.h>
#include <glib.h>
#include <glib/gprintf.h>
#include "debug.h"
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);