From 52f277b3f0069325e99f8ef8405cc8ee7b975c65 Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Tue, 26 May 2015 19:56:31 -0700 Subject: [PATCH] If adding a left/right turn to a lane, make sure that that lane is marked as selected. --- OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java index 9a0f248565..d7b486a90c 100644 --- a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java +++ b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java @@ -638,12 +638,14 @@ public class RouteResultPreparation { // This was just to make sure that there's no bad data. TurnType.setPrimaryTurnAndReset(lanesArray, ind, TurnType.TL); TurnType.setSecondaryTurn(lanesArray, ind, tt); + lanesArray[ind] |= 1; } } else { if (!TurnType.isRightTurn(tt)) { // This was just to make sure that there's no bad data. TurnType.setPrimaryTurnAndReset(lanesArray, ind, TurnType.TR); TurnType.setSecondaryTurn(lanesArray, ind, tt); + lanesArray[ind] |= 1; } } setAllowedLanes(tt, lanesArray);