diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-01-18 10:15:03 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-01-18 10:15:03 +0100 |
| commit | a0a6873dcc460004e9b1cca94b82a30f8f59df8d (patch) | |
| tree | 9753525d4d83cdd83f2f9c2aaad475d6c42addf8 | |
| parent | 3ed5f7f7c37ad01f1e49a091d8e31f0f21994199 (diff) | |
| download | cgeo-a0a6873dcc460004e9b1cca94b82a30f8f59df8d.zip cgeo-a0a6873dcc460004e9b1cca94b82a30f8f59df8d.tar.gz cgeo-a0a6873dcc460004e9b1cca94b82a30f8f59df8d.tar.bz2 | |
fix #3551: Circles on map not shown for mystery/multi caches with final
defined
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 4 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index 42b8f0a..8ca5d37 100644 --- a/main/src/cgeo/geocaching/Geocache.java +++ b/main/src/cgeo/geocaching/Geocache.java @@ -1816,4 +1816,8 @@ public class Geocache implements ICache, IWaypoint { return 0; } + public boolean applyDistanceRule() { + return (getType().applyDistanceRule() || hasUserModifiedCoords()) && getConnector() == GCConnector.getInstance(); + } + } diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 05b05be..d1ef0a3 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1610,7 +1610,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto } private CachesOverlayItemImpl getCacheItem(final Geocache cache) { - final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(cache, cache.getType().applyDistanceRule()); + final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(cache, cache.applyDistanceRule()); final int hashcode = new HashCodeBuilder() .append(cache.isReliableLatLon()) |
