aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2011-10-10 17:25:56 +0200
committerkoem <koem@petoria.de>2011-10-11 08:57:59 +0200
commit2e6caaa61eff54f717da0810f9ab748a7f6dffbe (patch)
tree3b6fdbbddef677fba1fbb4c95c739d330134653c /main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
parentbfa29b4962bee99f7b16b6900e424915fa2201e2 (diff)
downloadcgeo-2e6caaa61eff54f717da0810f9ab748a7f6dffbe.zip
cgeo-2e6caaa61eff54f717da0810f9ab748a7f6dffbe.tar.gz
cgeo-2e6caaa61eff54f717da0810f9ab748a7f6dffbe.tar.bz2
use WaypointType
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java')
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java b/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
index bd432c0..bccf739 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
@@ -37,7 +37,7 @@ class InternalMap extends AbstractInternalMap implements
if (waypoint != null) {
mapIntent.putExtra("latitude", waypoint.coords.getLatitude());
mapIntent.putExtra("longitude", waypoint.coords.getLongitude());
- mapIntent.putExtra("wpttype", waypoint.typee.id);
+ mapIntent.putExtra("wpttype", waypoint.type != null ? waypoint.type.id : null);
} else if (coords != null) {
mapIntent.putExtra("latitude", coords.getLatitude());
mapIntent.putExtra("longitude", coords.getLongitude());