From 4290fc3bad7fb8b025f0fcf5eb85c6c4a1efb122 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 8 Oct 2014 00:53:04 +0300 Subject: [PATCH] Fix bug --- .../src/net/osmand/router/PrecalculatedRouteDirection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/router/PrecalculatedRouteDirection.java b/OsmAnd-java/src/net/osmand/router/PrecalculatedRouteDirection.java index 17a5eb5314..3f8b2497d2 100644 --- a/OsmAnd-java/src/net/osmand/router/PrecalculatedRouteDirection.java +++ b/OsmAnd-java/src/net/osmand/router/PrecalculatedRouteDirection.java @@ -266,7 +266,7 @@ public class PrecalculatedRouteDirection { routeDirection.startFinishTime = (float) BinaryRoutePlanner.squareRootDist(pointsX[ind1], pointsY[ind1], ctx.startX, ctx.startY) / maxSpeed; // routeDirection.startX31 = ctx.startX; // routeDirection.startY31 = ctx.startY; - routeDirection.endPoint = calc(ctx.targetX, ctx.targetX); + routeDirection.endPoint = calc(ctx.targetX, ctx.targetY); routeDirection.endFinishTime = (float) BinaryRoutePlanner.squareRootDist(pointsX[ind2], pointsY[ind2], ctx.targetX, ctx.targetY) / maxSpeed; routeDirection.followNext = followNext;