try fix bug of "Ad as last waypoint" code
This commit is contained in:
parent
34297b091f
commit
5e886ea3a9
1 changed files with 6 additions and 3 deletions
|
@ -1297,9 +1297,12 @@ public class MapActivityActions implements DialogProvider {
|
|||
} else if(which == 2) {
|
||||
int sz = targetPointsHelper.getIntermediatePoints().size();
|
||||
LatLon pt = targetPointsHelper.getPointToNavigate();
|
||||
settings.insertIntermediatePoint(pt.getLatitude(), pt.getLongitude(),
|
||||
settings.getPointNavigateDescription(), sz, true);
|
||||
settings.setPointToNavigate(lat, lon, true, name);
|
||||
settings.insertIntermediatePoint(lat, lon, name, sz, true);
|
||||
settings.setPointToNavigate(pt.getLatitude(), pt.getLongitude(), true, settings.getPointNavigateDescription());
|
||||
// I believe the following prior code was buggy, Hardy 2013-06-10:
|
||||
//settings.insertIntermediatePoint(pt.getLatitude(), pt.getLongitude(),
|
||||
// settings.getPointNavigateDescription(), sz, true);
|
||||
//settings.setPointToNavigate(lat, lon, true, name);
|
||||
} else {
|
||||
settings.insertIntermediatePoint(lat, lon, name, 0, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue