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:
Diffstat (limited to 'search/search_query.cpp')
-rw-r--r--search/search_query.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/search/search_query.cpp b/search/search_query.cpp
index 5eb8088943..ec7d210070 100644
--- a/search/search_query.cpp
+++ b/search/search_query.cpp
@@ -462,7 +462,9 @@ namespace impl
string name, country;
LoadFeature(res.GetID(), feature, name, country);
- return new impl::PreResult2(feature, res, name, country);
+ return new impl::PreResult2(feature, res.GetRank(),
+ m_query.GetViewport(), m_query.GetPosition(),
+ name, country);
}
impl::PreResult2 * operator() (pair<size_t, uint32_t> const & id)
@@ -473,10 +475,10 @@ namespace impl
if (!name.empty() && !country.empty())
{
- // this results will be with equal rank
- impl::PreResult1 res(0, 0, feature.GetLimitRect(FeatureType::WORST_GEOMETRY).Center(),
- 0, m_query.m_position, m_query.GetViewport());
- return new impl::PreResult2(feature, res, name, country);
+ // this results will be with equal rank == 0
+ return new impl::PreResult2(feature, 0,
+ m_query.GetViewport(), m_query.GetPosition(),
+ name, country);
}
else
return 0;