Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima-1 committed Jul 26, 2023
1 parent f51f949 commit f9f4cf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,9 @@ public List<WptPt> setPoints(GpxRouteApproximation gpxApproximation, List<WptPt>
}
}
List<RouteSegmentResult> modifiedSegments = new ArrayList<>();
boolean duplicatePoint = needDuplicatePoint(gpxPoints, i);
for (int k = 0; k < segments.size(); k++) {
RouteSegmentResult seg = segments.get(k);
boolean duplicatePoint = needDuplicatePoint(gpxPoints, i);
boolean includeEndPoint = (duplicatePoint || lastGpxPoint) && k == segments.size() - 1;
if (!modifySegments) {
MeasurementEditingContextUtils.fillPointsArray(points, seg, includeEndPoint);
Expand Down

0 comments on commit f9f4cf9

Please sign in to comment.