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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2017-05-22 14:54:01 +0300
committerДобрый Ээх <dobriy-eeh@users.noreply.github.com>2017-05-29 13:46:21 +0300
commit716bcd2b83424c1172673ac86a1667492b68b7cf (patch)
tree5bf32ac7b778617e2d560ba8045ad32cac8efbd4 /routing/index_road_graph.cpp
parent899aa90144f28530ef2afff3246cd72e452286a5 (diff)
Review fixes.
Diffstat (limited to 'routing/index_road_graph.cpp')
-rw-r--r--routing/index_road_graph.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/routing/index_road_graph.cpp b/routing/index_road_graph.cpp
index 9f063bd0ce..328a1c4f82 100644
--- a/routing/index_road_graph.cpp
+++ b/routing/index_road_graph.cpp
@@ -99,8 +99,13 @@ void IndexRoadGraph::GetEdges(Junction const & junction, bool isOutgoing, TEdgeV
m2::PointD IndexRoadGraph::GetJunctionPoint(Segment const & segment, bool front) const
{
- return front && m_starter.FitsFinish(segment) ? m_starter.GetFinishVertex().GetPoint()
- : m_starter.GetPoint(segment, front);
+ if (!front && m_starter.FitsStart(segment))
+ return m_starter.GetStartVertex().GetPoint();
+
+ if (front && m_starter.FitsFinish(segment))
+ return m_starter.GetFinishVertex().GetPoint();
+
+ return m_starter.GetPoint(segment, front);
}
Junction IndexRoadGraph::GetJunction(Segment const & segment, bool front) const