Fixed route arrow disappearing

This commit is contained in:
Roman Kuznetsov 2015-10-27 21:10:31 +03:00 committed by r.kuznetsov
parent 1adf5dfcf3
commit 7ff925802a

View file

@ -385,7 +385,7 @@ void RouteRenderer::CalculateArrowBorders(drape_ptr<ArrowRenderProperty> const &
arrowBorders.m_startDistance = max(0.0, property->m_turns[i] - halfLen * 0.8);
arrowBorders.m_endDistance = min(property->m_end - property->m_start, property->m_turns[i] + halfLen * 1.2);
if (arrowBorders.m_startDistance < m_distanceFromBegin)
if (arrowBorders.m_startDistance + property->m_start < m_distanceFromBegin)
continue;
m_arrowBorders.push_back(arrowBorders);