Fixed bug 2302 in google.code. Start location now also be saved in gpx.

This commit is contained in:
unknown 2014-07-08 11:52:31 +03:00
parent 1873db5b27
commit ff5bfe1cd2

View file

@ -1011,7 +1011,16 @@ public class RouteProvider {
track.segments.add(trkSegment); track.segments.add(trkSegment);
int cRoute = currentRoute; int cRoute = currentRoute;
int cDirInfo = currentDirectionInfo; int cDirInfo = currentDirectionInfo;
//saving start point to gpx file
WptPt startpoint = new WptPt();
LatLon sc = helper.getPointToStart();
if (sc != null){
startpoint.lon = sc.getLongitude();
startpoint.lat = sc.getLatitude();
trkSegment.points.add(startpoint);
}
for(int i = cRoute; i< routeNodes.size(); i++){ for(int i = cRoute; i< routeNodes.size(); i++){
Location loc = routeNodes.get(i); Location loc = routeNodes.get(i);
WptPt pt = new WptPt(); WptPt pt = new WptPt();