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-03-22 16:10:26 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-03-25 16:40:52 +0300
commitac97784afd8254d2e724577c69c3d87749d5349b (patch)
treeab8884935abe9c96b5ebf9397b6679ba67ecef33 /generator
parent8ce28530301d6f891eef2ac948dabb09053f2a60 (diff)
[routing] review fixes
Diffstat (limited to 'generator')
-rw-r--r--generator/routing_index_generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator/routing_index_generator.cpp b/generator/routing_index_generator.cpp
index 91767cd8a8..cc6c111e85 100644
--- a/generator/routing_index_generator.cpp
+++ b/generator/routing_index_generator.cpp
@@ -189,6 +189,8 @@ public:
if (m_graph.IsJoint(segment.GetRoadPoint(fromStart)))
return true;
+ // For features, that ends out of mwm. In this case |m_graph.IsJoint| returns false, but we should
+ // think, that it's Joint anyway.
uint32_t const pointId = segment.GetPointId(fromStart);
uint32_t const pointsNumber = m_graph.GetGeometry().GetRoad(segment.GetFeatureId()).GetPointsCount();
return pointId == 0 || pointId + 1 == pointsNumber;