From 4b7081f127f1689064b0461239ee5593d8f9c6c8 Mon Sep 17 00:00:00 2001 From: rachytski Date: Tue, 10 May 2011 01:53:17 +0300 Subject: [PATCH] minor fixes. --- map/draw_processor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/draw_processor.cpp b/map/draw_processor.cpp index b5e5cecccc..ef3d109b4c 100644 --- a/map/draw_processor.cpp +++ b/map/draw_processor.cpp @@ -92,8 +92,8 @@ void path_points::best_filtration(m2::PointD const & pt) if ((m_startLength >= m_length) && (m_startLength < m_length + segLen)) m_startLength = m_length; - if ((m_endLength >= m_length) && (m_endLength < m_length + segLen)) - m_endLength = m_length + curr.Length(prev); + if ((m_endLength > m_length) && (m_endLength <= m_length + segLen)) + m_endLength = m_length + segLen; } if ((m_length >= m_startLength) && (m_endLength >= m_length + segLen))