Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-04-12 14:48:30 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:52:59 +0300
commitbc752c729ca3187a3932f363927dea34f69c737a (patch)
tree205207b1cb8cb9c936ce84c29114d452cf164ba7 /map/address_finder.cpp
parentafa8a7acc1cd715966e4b3af41c04b5f151f863e (diff)
[search] Fix category name from type resolver.
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r--map/address_finder.cpp11
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);
}