Merge pull request #9843 from osmandapp/gpx_approx_fix

#9773 #9774 fixes
This commit is contained in:
vshcherb 2020-09-18 13:34:50 +02:00 committed by GitHub
commit 25607e17b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -546,7 +546,7 @@ public class MeasurementEditingContext {
points.add(pt); points.add(pt);
} }
} else { } else {
for (int ik = seg.getEndPointIndex(); ik >= seg.getStartPointIndex(); ik--) { for (int ik = seg.getStartPointIndex(); ik >= seg.getEndPointIndex(); ik--) {
LatLon l = seg.getPoint(ik); LatLon l = seg.getPoint(ik);
WptPt pt = new WptPt(); WptPt pt = new WptPt();
pt.lat = l.getLatitude(); pt.lat = l.getLatitude();