From 5e8f9cd5ed610a693fce2215164b3dc47cc71a6b Mon Sep 17 00:00:00 2001 From: rsudev Date: Sun, 30 Oct 2011 12:00:47 +0100 Subject: Fixes #726, Save for offline not possible on live map - corrected logic error introduced in d558334501d1ed9d1becc6be55058d4ded793bb7 --- main/src/cgeo/geocaching/maps/CGeoMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/cgeo') 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); } } -- cgit v1.1