forked from organicmaps/organicmaps
[ios] Fixed bug with incorrect query from history.
This commit is contained in:
parent
39dc51b11e
commit
40a0cd0ad6
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ forRowAtIndexPath:(NSIndexPath *)indexPath
|
|||
BOOL const isRequestCell = isRouteSearch ? row != 0 : row < f.GetLastSearchQueries().size();
|
||||
if (isRequestCell)
|
||||
{
|
||||
search::QuerySaver::TSearchRequest const & query = [self queryAtIndex:indexPath.row];
|
||||
search::QuerySaver::TSearchRequest const & query = [self queryAtIndex:isRouteSearch ? indexPath.row - 1 : indexPath.row];
|
||||
[self.delegate searchText:@(query.second.c_str()) forInputLocale:@(query.first.c_str())];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue