aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorJavaDog <culmor30@gmail.com>2013-07-26 11:41:34 -0400
committerrsudev <rasch@munin-soft.de>2013-07-28 13:20:14 +0200
commit8abfdd11cb19ddf6f3d3af5ab761e58a853cc465 (patch)
tree070b9d0a27a3fc2b420648c8008628842453c019 /main/src
parent579436c971290c1ea4ad2e998ecf24d77fede5ff (diff)
downloadcgeo-8abfdd11cb19ddf6f3d3af5ab761e58a853cc465.zip
cgeo-8abfdd11cb19ddf6f3d3af5ab761e58a853cc465.tar.gz
cgeo-8abfdd11cb19ddf6f3d3af5ab761e58a853cc465.tar.bz2
Fixes #3000: Basic members caches missing on map
Fixes #3000 - a second, much simpler fix (my first attempt being pull request #3055). The problem was that caches loaded from the nearby list were being initialized with zoom level (max zoom level + 1), or 19. As far as I can tell there was no useful purpose for that, but it was preventing caches loaded from the live map at any zoom level from ever over-writing the null coordinates. So I made caches initialize with zoom level -1 instead.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 002e8c8..23a65c6 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -137,7 +137,7 @@ public class Geocache implements ICache, IWaypoint {
private final EnumSet<StorageLocation> storageLocation = EnumSet.of(StorageLocation.HEAP);
private boolean finalDefined = false;
private boolean logPasswordRequired = false;
- private int zoomlevel = Tile.ZOOMLEVEL_MAX + 1;
+ private int zoomlevel = Tile.ZOOMLEVEL_MIN - 1;
private static final Pattern NUMBER_PATTERN = Pattern.compile("\\d+");