This commit is contained in:
Alexey Kulish 2017-07-10 10:11:14 +03:00
parent 85258816ed
commit b776ea023e

View file

@ -813,12 +813,14 @@ public class GPXUtilities {
for (int i = 0; i < tracks.size(); i++) {
Track subtrack = tracks.get(i);
for (TrkSegment segment : subtrack.segments) {
if (!segment.generalSegment) {
g.totalTracks++;
if (segment.points.size() > 1) {
splitSegments.add(new SplitSegment(segment));
}
}
}
}
g.prepareInformation(fileTimestamp, splitSegments.toArray(new SplitSegment[splitSegments.size()]));
return g;
}