forked from organicmaps/organicmaps
[search] Fixed bug with rank when there is no region and no current position detected.
This commit is contained in:
parent
0b23047ff5
commit
848ac71fde
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue