diff options
Diffstat (limited to 'iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm')
-rw-r--r-- | iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm b/iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm index 79cc6c93da..4ccbb7e2f1 100644 --- a/iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm +++ b/iphone/Maps/Core/Routing/MWMRouter+RouteManager.mm @@ -42,9 +42,12 @@ + (void)movePointAtIndex:(NSInteger)index toIndex:(NSInteger)newIndex { NSAssert(index != newIndex, @"Route manager moves point to its' current position."); - auto & rm = GetFramework().GetRoutingManager(); - rm.MoveRoutePoint(index, newIndex); - rm.UpdatePreviewMode(); + GetFramework().GetRoutingManager().MoveRoutePoint(index, newIndex); +} + ++ (void)updatePreviewMode +{ + GetFramework().GetRoutingManager().UpdatePreviewMode(); } @end |