diff --git a/routing/car_router.cpp b/routing/car_router.cpp index dc2e02fa57..3e97edad64 100644 --- a/routing/car_router.cpp +++ b/routing/car_router.cpp @@ -290,12 +290,15 @@ IRouter::ResultCode CarRouter::FindRouteMSMT(TFeatureGraphNodeVec const & source case Cancelled: case InconsistentMWMandRoute: case RouteFileNotExist: - case PointsInDifferentMWM: case NeedMoreMaps: case InternalError: case FileTooOld: return code; + case PointsInDifferentMWM: + LOG(LERROR, ("FindSingleRouteDispatcher returns PointsInDifferentMWM in FindRouteMSMT(...).")); + return code; + case NoCurrentPosition: LOG(LERROR, ("NoCurrentPosition routing result returned by FindSingleRouteDispatcher()")); return code; @@ -476,8 +479,11 @@ CarRouter::ResultCode CarRouter::CalculateRoute(m2::PointD const & startPoint, LOG(LINFO, ("Single mwm routing case")); IRouter::ResultCode const code = FindRouteMSMT(startTask, m_cachedTargets, delegate, startMapping, route); - if (code != IRouter::ResultCode::NoError && code != IRouter::ResultCode::RouteNotFound) + if (code != IRouter::ResultCode::NoError && code != IRouter::ResultCode::RouteNotFound + && code != IRouter::ResultCode::PointsInDifferentMWM) + { return code; + } m_indexManager.ForEachMapping([](pair const & indexPair) { indexPair.second->FreeCrossContext();