Dont draw general gpx segment on the map

This commit is contained in:
Alexey Kulish 2017-07-10 20:16:13 +03:00
parent d71ab48209
commit 50928a7214

View file

@ -921,7 +921,7 @@ public class GPXUtilities {
for (Track t : tracks) { for (Track t : tracks) {
int trackColor = t.getColor(getColor(0)); int trackColor = t.getColor(getColor(0));
for (TrkSegment ts : t.segments) { for (TrkSegment ts : t.segments) {
if (ts.points.size() > 0) { if (!ts.generalSegment && ts.points.size() > 0) {
TrkSegment sgmt = new TrkSegment(); TrkSegment sgmt = new TrkSegment();
tpoints.add(sgmt); tpoints.add(sgmt);
sgmt.points.addAll(ts.points); sgmt.points.addAll(ts.points);