aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-02-24 09:43:51 +0100
committerrsudev <rasch@munin-soft.de>2013-02-24 09:43:51 +0100
commitc32d501ce28356c99b3b89d39bc2a3a345018efc (patch)
tree21d878a2ca900bcf40bb4266f15f613bea2db37b
parenteaa01d4976c2a97e9df60443a60db5a7d9e0061c (diff)
downloadcgeo-c32d501ce28356c99b3b89d39bc2a3a345018efc.zip
cgeo-c32d501ce28356c99b3b89d39bc2a3a345018efc.tar.gz
cgeo-c32d501ce28356c99b3b89d39bc2a3a345018efc.tar.bz2
Removed superfluous waypoint.clear in map
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 7a59e5b..9dde6ec 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1118,17 +1118,16 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
}
countVisibleCaches();
if (cachesCnt < Settings.getWayPointsThreshold() || geocodeIntent != null) {
+ // we don't want to see any stale waypoints
waypoints.clear();
- if (isLiveEnabled || mapMode == MapMode.LIVE || mapMode == MapMode.COORDS) {
+ if (isLiveEnabled || mapMode == MapMode.LIVE
+ || mapMode == MapMode.COORDS) {
//All visible waypoints
CacheType type = Settings.getCacheType();
Set<Waypoint> waypointsInViewport = cgData.loadWaypoints(viewport, excludeMine, excludeDisabled, type);
waypoints.addAll(waypointsInViewport);
}
- else
- {
- // we don't want to see any stale
- waypoints.clear();
+ else {
//All waypoints from the viewed caches
for (Geocache c : caches.getAsList()) {
waypoints.addAll(c.getWaypoints());