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