diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-05-25 11:22:30 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-05-25 11:24:49 +0200 |
| commit | 9fed8d3446c0fd34df1b73e258c22bf97ecf684b (patch) | |
| tree | abef3a1f9cf8bfcb9c051873dc809075d002ea99 /main/src/cgeo/geocaching/maps/CGeoMap.java | |
| parent | f97abf9389c3dfa292bfcff89e9a99ed7aab5a1f (diff) | |
| download | cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.zip cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.tar.gz cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.tar.bz2 | |
fix #2725: Circles on the map only around physical stages
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CGeoMap.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 89d1cdc..0af0e6c 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1606,7 +1606,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto } private CachesOverlayItemImpl getCacheItem(final Geocache cache) { - final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(cache, cache.getType()); + final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(cache, cache.getType().applyDistanceRule()); final int hashcode = new HashCodeBuilder() .append(cache.isReliableLatLon()) @@ -1686,7 +1686,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto } private CachesOverlayItemImpl getWaypointItem(final Waypoint waypoint) { - final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(waypoint, null); + final CachesOverlayItemImpl item = mapItemFactory.getCachesOverlayItem(waypoint, waypoint.getWaypointType().applyDistanceRule()); Drawable marker = getResources().getDrawable(!waypoint.isVisited() ? R.drawable.marker : R.drawable.marker_transparent); final Drawable[] layers = new Drawable[] { marker, |
