Merge pull request #7152 from osmandapp/5501_issue

#5501 - GPX editing issue
This commit is contained in:
Alexey 2019-07-04 14:34:26 +03:00 committed by GitHub
commit f2bfbe703a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1113,12 +1113,14 @@ public class TrackSegmentFragment extends OsmAndListFragment implements TrackBit
private TrkSegment getTrkSegment() {
for (Track t : gpxItem.group.getGpx().tracks) {
if (!t.generalTrack) {
for (TrkSegment s : t.segments) {
if (s.points.size() > 0 && s.points.get(0).equals(gpxItem.analysis.locationStart)) {
return s;
}
}
}
}
return null;
}