Skip to content

Commit

Permalink
[search] Avoid double pois search for mwm with matched cities: we sho…
Browse files Browse the repository at this point in the history
…uld run LimitedSearch from MatchRegions, not from MatchAroundPivot.
  • Loading branch information
tatiana-yan authored and mpimenov committed Apr 2, 2020
1 parent 341abdc commit 8f45654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/geocoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void Geocoder::GoImpl(vector<shared_ptr<MwmInfo>> 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);
}
Expand Down

0 comments on commit 8f45654

Please sign in to comment.