From 15c5708b0cb7860898efa9eb08c4cf8d143614c6 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Mon, 18 Jan 2016 11:56:15 +0300 Subject: [PATCH] Fixed matching location to route. --- routing/routing_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp index 0ec32dd6e9..dce2882f0d 100644 --- a/routing/routing_session.cpp +++ b/routing/routing_session.cpp @@ -356,7 +356,7 @@ void RoutingSession::SetRouter(unique_ptr && router, void RoutingSession::MatchLocationToRoute(location::GpsInfo & location, location::RouteMatchingInfo & routeMatchingInfo) const { - if (m_state != State::OnRoute) + if (!IsOnRoute()) return; threads::MutexGuard guard(m_routeSessionMutex);