diff --git a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java index 1bb939a116..5fcb91e40d 100644 --- a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java +++ b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java @@ -528,10 +528,9 @@ public class GpxSelectionHelper { public void processPoints() { update(); this.processedPointsToDisplay = gpxFile.proccessPoints(); - List processedRoutePointsToDisplay = gpxFile.processRoutePoints(); - if (!processedRoutePointsToDisplay.isEmpty()) { - this.processedPointsToDisplay.addAll(processedRoutePointsToDisplay); - routePoints = !processedRoutePointsToDisplay.isEmpty(); + if (this.processedPointsToDisplay.isEmpty()) { + this.processedPointsToDisplay = gpxFile.processRoutePoints(); + routePoints = !this.processedPointsToDisplay.isEmpty(); } }