Fix #2388
This commit is contained in:
parent
ebe9acfbbe
commit
fcd598d134
1 changed files with 5 additions and 3 deletions
|
@ -680,9 +680,11 @@ public class GPXUtilities {
|
|||
List<TrkSegment> tpoints = new ArrayList<TrkSegment>();
|
||||
if (routes.size() > 0) {
|
||||
for (Route r : routes) {
|
||||
TrkSegment sgmt = new TrkSegment();
|
||||
tpoints.add(sgmt);
|
||||
sgmt.points.addAll(r.points);
|
||||
if (r.points.size() > 0) {
|
||||
TrkSegment sgmt = new TrkSegment();
|
||||
tpoints.add(sgmt);
|
||||
sgmt.points.addAll(r.points);
|
||||
}
|
||||
}
|
||||
}
|
||||
return tpoints;
|
||||
|
|
Loading…
Reference in a new issue