forked from organicmaps/organicmaps
[search] Show distance for valid position without NearMe mode. Closed #599.
This commit is contained in:
parent
188b9e8ec3
commit
7e154f966d
1 changed files with 3 additions and 4 deletions
|
@ -147,12 +147,11 @@ void Engine::SearchAsync()
|
|||
}
|
||||
|
||||
// Initialize query.
|
||||
bool const isNearMe = params.IsNearMeMode();
|
||||
if (isNearMe)
|
||||
{
|
||||
if (params.IsNearMeMode())
|
||||
m_pQuery->SetViewport(GetViewportRect(params.m_lat, params.m_lon));
|
||||
|
||||
if (params.m_validPos)
|
||||
m_pQuery->SetPosition(GetViewportXY(params.m_lat, params.m_lon));
|
||||
}
|
||||
else
|
||||
m_pQuery->NullPosition();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue