aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeowaypointadd.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-09-16 16:56:24 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-09-16 16:56:24 +0200
commitf3be29549e524305c0833d66b6d2465df270ff5a (patch)
tree474221a3dd841582647f504f130fe6b4a25068e8 /main/src/cgeo/geocaching/cgeowaypointadd.java
parent4ce69432eac38b0ebc143d19a3ce31fe8789ab38 (diff)
downloadcgeo-f3be29549e524305c0833d66b6d2465df270ff5a.zip
cgeo-f3be29549e524305c0833d66b6d2465df270ff5a.tar.gz
cgeo-f3be29549e524305c0833d66b6d2465df270ff5a.tar.bz2
Cache result of waypoint order computation
Diffstat (limited to 'main/src/cgeo/geocaching/cgeowaypointadd.java')
-rw-r--r--main/src/cgeo/geocaching/cgeowaypointadd.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeowaypointadd.java b/main/src/cgeo/geocaching/cgeowaypointadd.java
index 2977407..0ffaa2b 100644
--- a/main/src/cgeo/geocaching/cgeowaypointadd.java
+++ b/main/src/cgeo/geocaching/cgeowaypointadd.java
@@ -54,7 +54,7 @@ public class cgeowaypointadd extends AbstractActivity {
} else {
geocode = waypoint.geocode;
type = waypoint.type;
- prefix = waypoint.prefix;
+ prefix = waypoint.getPrefix();
lookup = waypoint.lookup;
app.setAction(geocode);
@@ -331,7 +331,7 @@ public class cgeowaypointadd extends AbstractActivity {
final cgWaypoint waypoint = new cgWaypoint();
waypoint.type = type;
waypoint.geocode = geocode;
- waypoint.prefix = prefix;
+ waypoint.setPrefix(prefix);
waypoint.lookup = lookup;
waypoint.name = name;
waypoint.coords = new Geopoint(coords.get(0), coords.get(1));