Fix for general segments and segments with one point
This commit is contained in:
parent
367b2bc27e
commit
5a2813e54c
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ public class RouteColorize {
|
|||
}
|
||||
for (Track t : gpxFile.tracks) {
|
||||
for (TrkSegment ts : t.segments) {
|
||||
if (ts.generalSegment || ts.points.size() < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (WptPt p : ts.points) {
|
||||
latList.add(p.lat);
|
||||
lonList.add(p.lon);
|
||||
|
|
Loading…
Reference in a new issue