diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-03-22 16:10:26 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-03-25 16:40:52 +0300 |
commit | ac97784afd8254d2e724577c69c3d87749d5349b (patch) | |
tree | ab8884935abe9c96b5ebf9397b6679ba67ecef33 /generator | |
parent | 8ce28530301d6f891eef2ac948dabb09053f2a60 (diff) |
[routing] review fixes
Diffstat (limited to 'generator')
-rw-r--r-- | generator/routing_index_generator.cpp | 2 |
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; |