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:
Diffstat (limited to 'openlr/candidate_paths_getter.cpp')
-rw-r--r--openlr/candidate_paths_getter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/openlr/candidate_paths_getter.cpp b/openlr/candidate_paths_getter.cpp
index be7a952049..a61e3bb407 100644
--- a/openlr/candidate_paths_getter.cpp
+++ b/openlr/candidate_paths_getter.cpp
@@ -219,6 +219,10 @@ void CandidatePathsGetter::GetAllSuitablePaths(Graph::EdgeVector const & startLi
for (auto const & e : edges)
{
+ // Fake edges are allowed only at the start/end of the path.
+ if (e.IsFake())
+ continue;
+
if (EdgesAreAlmostEqual(e.GetReverseEdge(), currentEdge))
continue;