From 6ca65c8305e264c82ca1e09b05eb9f0bd82a9db0 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Tue, 17 Sep 2019 19:33:42 +0300 Subject: [PATCH] Fix entry point for SetFakeSegmentsOnPolyline() --- routing/index_router.cpp | 1 + routing/routing_session.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 370dd7794a..f09dbc109a 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -1352,6 +1352,7 @@ RouterResultCode IndexRouter::RedressRoute(vector const & segments, if (!segment.IsRealSegment()) starter.ConvertToReal(segment); } + route.SetFakeSegmentsOnPolyline(); vector speedCamProhibited; FillSpeedCamProhibitedMwms(segments, speedCamProhibited); diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp index 633ae74a0e..5ce95edb71 100644 --- a/routing/routing_session.cpp +++ b/routing/routing_session.cpp @@ -290,7 +290,6 @@ SessionState RoutingSession::OnLocationPositionChanged(GpsInfo const & info) m_turnNotificationsMgr.SetSpeedMetersPerSecond(info.m_speedMpS); bool movedIterator, closerToFake; - m_route->SetFakeSegmentsOnPolyline(); std::tie(movedIterator, closerToFake) = m_route->MoveIteratorToReal(info); if (movedIterator)