diff options
author | vng <viktor.govako@gmail.com> | 2013-04-12 14:48:30 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:59 +0300 |
commit | bc752c729ca3187a3932f363927dea34f69c737a (patch) | |
tree | 205207b1cb8cb9c936ce84c29114d452cf164ba7 /map/address_finder.cpp | |
parent | afa8a7acc1cd715966e4b3af41c04b5f151f863e (diff) |
[search] Fix category name from type resolver.
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r-- | map/address_finder.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/map/address_finder.cpp b/map/address_finder.cpp index ff939ecd95..1879997c11 100644 --- a/map/address_finder.cpp +++ b/map/address_finder.cpp @@ -340,17 +340,8 @@ namespace size_t const count = types.Size(); for (size_t i = 0; i < count; ++i) { - uint32_t type = types[i]; - string s; - if (!eng->GetNameByType(type, lang, s)) - { - // Try to use common type truncation if no match found. - ftype::TruncValue(type, 2); - (void)eng->GetNameByType(type, lang, s); - } - - if (!s.empty()) + if (eng->GetNameByType(types[i], lang, s)) info.m_types.push_back(s); } |