Pass polyline point back as output parameter

This commit is contained in:
Constantin Shalnev 2015-07-27 15:37:09 +03:00 committed by Alex Zolotarev
parent 09ac7ca6e6
commit 2054812193

View file

@ -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