diff options
author | rsudev <rasch@munin-soft.de> | 2011-10-30 12:00:47 +0100 |
---|---|---|
committer | rsudev <rasch@munin-soft.de> | 2011-10-30 12:00:47 +0100 |
commit | 5e8f9cd5ed610a693fce2215164b3dc47cc71a6b (patch) | |
tree | 16e428374ad71f8f77124164e8680a3b05775539 | |
parent | 45d32990df5b6217845f391a487618d5482f035c (diff) | |
download | cgeo-5e8f9cd5ed610a693fce2215164b3dc47cc71a6b.zip cgeo-5e8f9cd5ed610a693fce2215164b3dc47cc71a6b.tar.gz cgeo-5e8f9cd5ed610a693fce2215164b3dc47cc71a6b.tar.bz2 |
Fixes #726, Save for offline not possible on live map
- corrected logic error introduced in
d558334501d1ed9d1becc6be55058d4ded793bb7
-rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index ceddb5e..9d45e4c 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -615,7 +615,7 @@ public class CGeoMap extends AbstractMap implements OnDragListener, ViewFactory for (cgCache oneCache : cachesProtected) { if (oneCache != null && oneCache.coords != null) { - if (!cgBase.isCacheInViewPort(mapCenterLat, mapCenterLon, mapSpanLat, mapSpanLon, oneCache.coords) && app.isOffline(oneCache.geocode, null)) { + if (cgBase.isCacheInViewPort(mapCenterLat, mapCenterLon, mapSpanLat, mapSpanLon, oneCache.coords) && !app.isOffline(oneCache.geocode, null)) { geocodes.add(oneCache.geocode); } } |