From 3b6b695ae2ea2b67badc00b0b04f97defdf85465 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 26 Jul 2017 11:26:53 +0300 Subject: [PATCH] Fix trk and rt points --- OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(); } }