diff options
author | vng <viktor.govako@gmail.com> | 2012-09-25 17:22:18 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:51 +0300 |
commit | 41359f557a6634c6dc041113d4bc21e96ced9204 (patch) | |
tree | 2bb05e402d1cd43201e59a8f8eb73b88a21e0348 /search | |
parent | f5b0a6b7567d13de6070b67e73080516ba16dd06 (diff) |
Fix types getting in Framework::GetAddressInfo.
Diffstat (limited to 'search')
-rw-r--r-- | search/intermediate_result.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/search/intermediate_result.cpp b/search/intermediate_result.cpp index cb409027db..d51234fc88 100644 --- a/search/intermediate_result.cpp +++ b/search/intermediate_result.cpp @@ -374,9 +374,14 @@ uint32_t PreResult2::GetBestType(set<uint32_t> const * pPrefferedTypes) const } if (t == 0) + { t = m_types.GetBestType(); - ftype::TruncValue(t, 2); + // Do type truncate (2-level is enough for search results) only for + // non-preffered types (types from categories leave original). + ftype::TruncValue(t, 2); + } + return t; } |