From 20548121937ac6a62640df3568f15286c633af80 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Mon, 27 Jul 2015 15:37:09 +0300 Subject: [PATCH] Pass polyline point back as output parameter --- routing/route.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/route.cpp b/routing/route.cpp index f15ed1ac3a..6743fd9aa1 100644 --- a/routing/route.cpp +++ b/routing/route.cpp @@ -147,7 +147,7 @@ void Route::GetCurrentDirectionPoint(m2::PointD & pt) const { ASSERT(m_current.IsValid(), ()); - m_poly.GetPoint(min(m_current.m_ind + 1, m_poly.GetSize() - 1)); + pt = m_poly.GetPoint(min(m_current.m_ind + 1, m_poly.GetSize() - 1)); } bool Route::MoveIterator(location::GpsInfo const & info) const