diff options
author | jandegr <jandegr@users.noreply.github.com> | 2017-05-17 17:23:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 17:23:52 +0200 |
commit | 908769bb8af00e115b29506ab0c94b4ea3978886 (patch) | |
tree | d143e06c253e050e82fc015dab9e1a8b60d02815 | |
parent | 1e71b5fd4c0bf5ac96e5207c51db7d17057ed798 (diff) | |
download | navit-908769bb8af00e115b29506ab0c94b4ea3978886.tar.gz |
search duplicate check
http://forum.navit-project.org/viewtopic.php?f=9&t=447&p=1589#p1589
-rw-r--r-- | navit/map/binfile/binfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/map/binfile/binfile.c b/navit/map/binfile/binfile.c index 9c6d9a2ef..fb0f3b880 100644 --- a/navit/map/binfile/binfile.c +++ b/navit/map/binfile/binfile.c @@ -2327,13 +2327,13 @@ binmap_search_get_item(struct map_search_priv *map_search) } if (map_search->mr->tile_depth > 1 && item_is_town(*it) && map_search->search.type != attr_district_name) { if (binfile_attr_get(it->priv_data, attr_town_name_match, &at) || binfile_attr_get(it->priv_data, attr_town_name, &at)) { - if (!linguistics_compare(at.u.str, map_search->search.u.str, mode) && !duplicate(map_search, it, attr_town_name,0)) + if (!linguistics_compare(at.u.str, map_search->search.u.str, mode) && !duplicate(map_search, it, attr_town_name, attr_town_postal)) return it; } } if (map_search->mr->tile_depth > 1 && item_is_district(*it) && map_search->search.type != attr_town_name) { if (binfile_attr_get(it->priv_data, attr_district_name_match, &at) || binfile_attr_get(it->priv_data, attr_district_name, &at)) { - if (!linguistics_compare(at.u.str, map_search->search.u.str, mode) && !duplicate(map_search, it, attr_town_name,0)) + if (!linguistics_compare(at.u.str, map_search->search.u.str, mode) && !duplicate(map_search, it, attr_town_name,attr_town_postal)) return it; } } |