From 740b209fb8dae5c8341e43ebd1c90ad7dfa2be58 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Fri, 24 Apr 2015 14:45:22 +0200 Subject: [PATCH] Update AvoidSpecificRoads.java --- OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java b/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java index b3bec2b3d7..e45b45165c 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java +++ b/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java @@ -109,7 +109,7 @@ public class AvoidSpecificRoads { bld.setAdapter(listAdapter, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { - RouteDataObject obj = getMissingRoads().get(which - 1); + RouteDataObject obj = getMissingRoads().get(which); double lat = MapUtils.get31LatitudeY(obj.getPoint31YTile(0)); double lon = MapUtils.get31LongitudeX(obj.getPoint31XTile(0)); showOnMap(app, mapActivity, lat, lon, getText(obj), dialog);