Merge pull request #4205 from osmandapp/fix_trk_and_rt_points

Fix trk and rt points
This commit is contained in:
Alexey 2017-07-26 11:48:30 +03:00 committed by GitHub
commit 4f08959f7e

View file

@ -528,10 +528,9 @@ public class GpxSelectionHelper {
public void processPoints() { public void processPoints() {
update(); update();
this.processedPointsToDisplay = gpxFile.proccessPoints(); this.processedPointsToDisplay = gpxFile.proccessPoints();
List<TrkSegment> processedRoutePointsToDisplay = gpxFile.processRoutePoints(); if (this.processedPointsToDisplay.isEmpty()) {
if (!processedRoutePointsToDisplay.isEmpty()) { this.processedPointsToDisplay = gpxFile.processRoutePoints();
this.processedPointsToDisplay.addAll(processedRoutePointsToDisplay); routePoints = !this.processedPointsToDisplay.isEmpty();
routePoints = !processedRoutePointsToDisplay.isEmpty();
} }
} }