[ios] Fixed router from point behavior.

This commit is contained in:
Ilya Grechuhin 2016-07-15 17:34:55 +03:00
parent a1e128f831
commit 2336e94445

View file

@ -102,9 +102,9 @@ bool isMarkerPoint(MWMRoutePoint const & point) { return point.IsValid() && !poi
- (void)buildFromPoint:(MWMRoutePoint const &)startPoint bestRouter:(BOOL)bestRouter
{
self.startPoint = startPoint;
if (!self.finishPoint.IsValid())
self.finishPoint = lastLocationPoint();
[self rebuildWithBestRouter:bestRouter];
if (!self.finishPoint.IsValid())
[[MWMMapViewControlsManager manager] onRoutePrepare];
}
- (void)buildToPoint:(MWMRoutePoint const &)finishPoint bestRouter:(BOOL)bestRouter