[search] Do not call MatchAroundPivot for MwmType::MatchedCity: LimitedSearch already called from MatchRegions.

This commit is contained in:
tatiana-yan 2020-03-18 19:41:16 +03:00 committed by mpimenov
parent 59de76a3f8
commit 445e4715f4

View file

@ -572,7 +572,7 @@ void Geocoder::GoImpl(vector<shared_ptr<MwmInfo>> const & infos, bool inViewport
{
MatchRegions(ctx, Region::TYPE_COUNTRY);
if (mwmType.IsFirstBatchMwm(inViewport) || m_preRanker.NumSentResults() == 0)
if (mwmType.m_viewportIntersect || mwmType.m_userPosition || m_preRanker.NumSentResults() == 0)
{
MatchAroundPivot(ctx);
}