From c4cdb670d4ce1db298bf2ca0190749b7cc6a7ce7 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 4 Feb 2015 13:27:48 +0300 Subject: [PATCH] Bugfix. Drawing turn arrows on the navigation route when they are close to the end and the beginnig of the route. --- map/route_track.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/map/route_track.cpp b/map/route_track.cpp index 4d88d76159..5938ecd17f 100644 --- a/map/route_track.cpp +++ b/map/route_track.cpp @@ -42,7 +42,7 @@ bool ClipArrowBodyAndGetArrowDirection(vector & ptsTurn, pair= ptsTurnSz - 2) + if (i > ptsTurnSz - 2) return false; vLen = ptsTurn[i + 1].Length(ptsTurn[i]); len += vLen; @@ -56,7 +56,7 @@ bool ClipArrowBodyAndGetArrowDirection(vector & ptsTurn, pair= ptsTurnSz - 2) + if (j > ptsTurnSz - 2) return false; vLenForArrow = ptsTurn[j + 1].Length(ptsTurn[j]); lenForArrow += vLenForArrow; @@ -91,7 +91,7 @@ bool ClipArrowBodyAndGetArrowDirection(vector & ptsTurn, pair