From c72b279f3889013777e9d7dbfb5a02b1deaa9c1a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 4 Aug 2016 01:40:19 +0200 Subject: [PATCH] Fix #1372 --- OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java index 6392265a9a..321acae9c1 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java @@ -247,7 +247,8 @@ public class RouteCalculationResult { int roundAboutEnd = prevLocationSize ; // take next name for roundabout (not roundabout name) while (lind < list.size() - 1 && list.get(lind).getObject().roundabout()) { - roundAboutEnd++; + roundAboutEnd += Math.abs(list.get(lind).getEndPointIndex() + - list.get(lind).getStartPointIndex()); lind++; } // Consider roundabout end.