Change the way intermediate point added

This commit is contained in:
Victor Shcherb 2015-11-15 00:41:31 +01:00
parent 02b1ff2978
commit 0daa278bd1

View file

@ -163,7 +163,7 @@ public class MapActivityActions implements DialogProvider {
public void addAsTarget(double latitude, double longitude, PointDescription pd) {
TargetPointsHelper targets = getMyApplication().getTargetPointsHelper();
targets.navigateToPoint(new LatLon(latitude, longitude), true, -1,
targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size() + 1,
pd);
openIntermediateEditPointsDialog();
}