From 44aab4d12bbfceb85bf0e5a506fb1e1b4c7b4b08 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Mon, 30 Nov 2015 14:24:57 +0300 Subject: [PATCH] [android] Fixed bug with finished routing. --- routing/routing_session.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/routing_session.hpp b/routing/routing_session.hpp index d25a34b77c..270cdb2240 100644 --- a/routing/routing_session.hpp +++ b/routing/routing_session.hpp @@ -84,7 +84,7 @@ public: m2::PointD GetEndPoint() const { return m_endPoint; } bool IsActive() const { return (m_state != RoutingNotActive); } - bool IsNavigable() const { return (m_state == RouteNotStarted || m_state == OnRoute); } + bool IsNavigable() const { return (m_state == RouteNotStarted || m_state == OnRoute || m_state == RouteFinished); } bool IsBuilt() const { return (IsNavigable() || m_state == RouteNeedRebuild || m_state == RouteFinished); } bool IsBuilding() const { return (m_state == RouteBuilding); } bool IsOnRoute() const { return (m_state == OnRoute); }