From d226c850e503a1cdbfb5e6ba0f7bbd2dbf2cfcb8 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Tue, 18 Aug 2015 11:54:10 +0300 Subject: [PATCH] PR fixes --- iphone/Maps/Classes/MapViewController.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 9cb8494f09..9efc6c841a 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -212,8 +212,9 @@ typedef NS_OPTIONS(NSUInteger, MapInfoView) { self.forceRoutingStateChange = ForceRoutingStateChangeStartFollowing; auto & f = GetFramework(); - f.SetRouter(f.GetBestRouter(ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate), self.restoreRouteDestination)); - GetFramework().BuildRoute(ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate), self.restoreRouteDestination, 0 /* timeoutSec */); + m2::PointD const location = ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate); + f.SetRouter(f.GetBestRouter(location, self.restoreRouteDestination)); + GetFramework().BuildRoute(location, self.restoreRouteDestination, 0 /* timeoutSec */); } #pragma mark - Map Navigation