diff options
| author | rsudev <rasch@munin-soft.de> | 2013-02-24 09:43:51 +0100 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-02-24 09:43:51 +0100 |
| commit | c32d501ce28356c99b3b89d39bc2a3a345018efc (patch) | |
| tree | 21d878a2ca900bcf40bb4266f15f613bea2db37b | |
| parent | eaa01d4976c2a97e9df60443a60db5a7d9e0061c (diff) | |
| download | cgeo-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.java | 9 |
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()); |
