From ec95a1901928adf2e42f617d759cb3b27c1fc2cf Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 5 Jan 2015 14:03:51 +0100 Subject: [PATCH] get syntax right --- .../src/net/osmand/plus/views/controls/MapRouteInfoControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java index 0227260130..c0e86b0f9e 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java @@ -73,7 +73,7 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio @Override public boolean onSingleTap(PointF point, RotatedTileBox tileBox) { if(selectFromMapTouch) { - LatLon new latlon = tileBox.getLatLonFromPixel(point.x, point.y); + latlon = new LatLon(tileBox.getLatLonFromPixel(point.x, point.y)); selectFromMapTouch = false; //TODO: Hardy: Looks like there is a small bug here somewhere: Re-selecting the "From" or "To" point during an ongoing route calculation (and only then) seems to (sometimes?) only interrupt the ongoing route calculation, but not restart it again with the new points if(selectFromMapForTarget) {