From b5b9437df3daf5efabd343b49513211d14bfddab Mon Sep 17 00:00:00 2001 From: tatiana-kondakova Date: Wed, 20 Sep 2017 11:01:07 +0300 Subject: [PATCH] Fix fake PartOfReal ends for backward segments --- routing/index_graph_starter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/routing/index_graph_starter.cpp b/routing/index_graph_starter.cpp index 574809f9e4..d1eed313c7 100644 --- a/routing/index_graph_starter.cpp +++ b/routing/index_graph_starter.cpp @@ -348,10 +348,8 @@ void IndexGraphStarter::AddEnding(FakeEnding const & thisEnding, FakeEnding cons false /* isPartOfReal */, dummy /* realSegment */); // Add fake parts of real - auto frontJunction = - m_graph.GetJunction(projection.m_segment, projection.m_segment.IsForward()); - auto backJunction = - m_graph.GetJunction(projection.m_segment, !projection.m_segment.IsForward()); + auto frontJunction = m_graph.GetJunction(projection.m_segment, true /* front */); + auto backJunction = m_graph.GetJunction(projection.m_segment, false /* front */); // Check whether we have projections to same real segment from both endings. auto const it = otherSegments.find(projection.m_segment);