From 848ac71fde587734a3328668b64a8171ff91d395 Mon Sep 17 00:00:00 2001 From: vng Date: Wed, 23 Jul 2014 16:45:22 +0300 Subject: [PATCH] [search] Fixed bug with rank when there is no region and no current position detected. --- search/search_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/search_query.cpp b/search/search_query.cpp index 830e486e7b..c0af4213ef 100644 --- a/search/search_query.cpp +++ b/search/search_query.cpp @@ -575,7 +575,7 @@ namespace impl { storage::CountryInfo ci; res2->m_region.GetRegion(m_query.m_pInfoGetter, ci); - if (ci.m_name == m_query.GetPositionRegion()) + if (ci.IsNotEmpty() && ci.m_name == m_query.GetPositionRegion()) res2->m_rank *= 1.7; } break;