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:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-05-23 14:03:00 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-05-24 17:29:38 +0300
commitc4fd55a3aa634e4bbaad2d34c641ae784aa7f8dc (patch)
treec2ceb1a6c0781d26ab16d876c49ad198f25d9b6f /routing/index_router.cpp
parent67af21aaa3a5c5d733cbe1d5774071264522cafd (diff)
review fixes
Diffstat (limited to 'routing/index_router.cpp')
-rw-r--r--routing/index_router.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/routing/index_router.cpp b/routing/index_router.cpp
index e609775819..c6da691b49 100644
--- a/routing/index_router.cpp
+++ b/routing/index_router.cpp
@@ -647,8 +647,15 @@ RouterResultCode IndexRouter::CalculateSubroute(Checkpoints const & checkpoints,
if (leapsResult != RouterResultCode::NoError)
return leapsResult;
- LeapsPostProcessor leapsPostProcessor(subrouteWithoutPostprocessing, starter);
- subroute = leapsPostProcessor.GetProcessedPath();
+ if (mode == WorldGraphMode::LeapsOnly)
+ {
+ LeapsPostProcessor leapsPostProcessor(subrouteWithoutPostprocessing, starter);
+ subroute = leapsPostProcessor.GetProcessedPath();
+ }
+ else
+ {
+ subroute = move(subrouteWithoutPostprocessing);
+ }
}
LOG(LINFO, ("Time for routing in mode:", starter.GetGraph().GetMode(), "is",