From 8f45654b5c2cf7e7e8a79fd84cf43e48544e912e Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Thu, 2 Apr 2020 14:39:01 +0300 Subject: [PATCH] [search] Avoid double pois search for mwm with matched cities: we should run LimitedSearch from MatchRegions, not from MatchAroundPivot. --- search/geocoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/geocoder.cpp b/search/geocoder.cpp index b16b9944423..e671bc1e1d8 100644 --- a/search/geocoder.cpp +++ b/search/geocoder.cpp @@ -585,7 +585,7 @@ void Geocoder::GoImpl(vector> const & infos, bool inViewport auto const mwmType = m_context->GetType(); CHECK(mwmType, ()); if (mwmType->m_viewportIntersected || mwmType->m_containsUserPosition || - m_preRanker.NumSentResults() == 0) + m_preRanker.Size() == 0) { MatchAroundPivot(ctx); }