diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index 8cdb49f89e..b540b898e9 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -248,6 +248,8 @@ void FillTransitStyleForRendering(vector const & segments, Transit { auto const time = static_cast(ceil(s.GetTimeFromBeginningSec() - prevTime)); auto const distance = s.GetDistFromBeginningMeters() - prevDistance; + prevDistance = s.GetDistFromBeginningMeters(); + prevTime = s.GetTimeFromBeginningSec(); if (!s.HasTransitInfo()) { @@ -383,9 +385,6 @@ void FillTransitStyleForRendering(vector const & segments, Transit pendingEntrance = true; } } - - prevDistance = s.GetDistFromBeginningMeters(); - prevTime = s.GetTimeFromBeginningSec(); } routeInfo.m_totalDistInMeters = prevDistance;