diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-09-26 13:15:23 +0300 |
---|---|---|
committer | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-07 14:48:51 +0300 |
commit | 513a61ea0c7868b636eebb705ea6097cdb6deea2 (patch) | |
tree | 33a39263fa3f1a1b0e10a03ed20c23f6f48a91f9 /map/framework.cpp | |
parent | 2391ba6399e0548d81a9116816a8f48dd15b0b12 (diff) |
Move a speedcam calculation to the OnPositionChanged method.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r-- | map/framework.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 251cc808fb..b894790e99 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -2290,7 +2290,7 @@ void Framework::CheckLocationForRouting(GpsInfo const & info) return; m2::PointD const & position = GetLocationState()->Position(); - if (m_routingSession.OnLocationPositionChanged(position, info) == RoutingSession::RouteNeedRebuild) + if (m_routingSession.OnLocationPositionChanged(position, info, m_model.GetIndex()) == RoutingSession::RouteNeedRebuild) { auto readyCallback = [this](Route const & route, IRouter::ResultCode code) { |