Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-08-07 13:54:41 +02:00
commit 98a6265f99

View file

@ -1044,8 +1044,9 @@ public class RouteProvider {
int cRoute = currentRoute; int cRoute = currentRoute;
int cDirInfo = currentDirectionInfo; int cDirInfo = currentDirectionInfo;
//saving start point to gpx file // Saving start point to gpx file's trkpt section
// This causes all offsets to be wrong by 1. Also: start point seems already present in file. // The only time the startpoint is missing in trkpts is if "Calculate first and last segment" is selected, and start is not the start of the selected file. In all other cases it would be duplicated.
// TODO: Adding it here causes all offsets to be wrong by 1, so this needs fixing
// WptPt startpoint = new WptPt(); // WptPt startpoint = new WptPt();
// TargetPoint sc = helper.getPointToStart(); // TargetPoint sc = helper.getPointToStart();
// if (sc != null){ // if (sc != null){