Merge pull request #7152 from osmandapp/5501_issue
#5501 - GPX editing issue
This commit is contained in:
commit
f2bfbe703a
1 changed files with 5 additions and 3 deletions
|
@ -1113,9 +1113,11 @@ public class TrackSegmentFragment extends OsmAndListFragment implements TrackBit
|
||||||
|
|
||||||
private TrkSegment getTrkSegment() {
|
private TrkSegment getTrkSegment() {
|
||||||
for (Track t : gpxItem.group.getGpx().tracks) {
|
for (Track t : gpxItem.group.getGpx().tracks) {
|
||||||
for (TrkSegment s : t.segments) {
|
if (!t.generalTrack) {
|
||||||
if (s.points.size() > 0 && s.points.get(0).equals(gpxItem.analysis.locationStart)) {
|
for (TrkSegment s : t.segments) {
|
||||||
return s;
|
if (s.points.size() > 0 && s.points.get(0).equals(gpxItem.analysis.locationStart)) {
|
||||||
|
return s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue