#5501 - GPX editing issue
This commit is contained in:
parent
0713ada1df
commit
7b5811bffc
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue