Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-09-26 13:15:23 +0300
committerLev Dragunov <l.dragunov@corp.mail.ru>2015-10-07 14:48:51 +0300
commit513a61ea0c7868b636eebb705ea6097cdb6deea2 (patch)
tree33a39263fa3f1a1b0e10a03ed20c23f6f48a91f9 /map/framework.cpp
parent2391ba6399e0548d81a9116816a8f48dd15b0b12 (diff)
Move a speedcam calculation to the OnPositionChanged method.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp2
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)
{