Fix for general segments and segments with one point

This commit is contained in:
cepprice 2021-04-13 15:43:29 +05:00
parent 367b2bc27e
commit 5a2813e54c

View file

@ -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);