diff options
author | Marco Jacob <mjacob@union06.de> | 2012-11-29 22:35:07 +0100 |
---|---|---|
committer | Marco Jacob <mjacob@union06.de> | 2012-11-29 22:35:07 +0100 |
commit | f82dd23fa9c4269abfab6e27bcf54ff4bc2fbc5d (patch) | |
tree | 9b5a9923b3b17a037fd2a14fad42b5b50ff027f1 /main/src/cgeo/geocaching | |
parent | ea36181c925ed983506d8ea546d7435b8c5bc220 (diff) | |
download | cgeo-f82dd23fa9c4269abfab6e27bcf54ff4bc2fbc5d.zip cgeo-f82dd23fa9c4269abfab6e27bcf54ff4bc2fbc5d.tar.gz cgeo-f82dd23fa9c4269abfab6e27bcf54ff4bc2fbc5d.tar.bz2 |
fix finalDefined flag vanishing on list item refresh
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r-- | main/src/cgeo/geocaching/cgCache.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 7035d65..9286cdc 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -294,12 +294,12 @@ public class cgCache implements ICache, IWaypoint { attributes.set(other.attributes); } if (waypoints.isEmpty()) { - waypoints.set(other.waypoints); + this.setWaypoints(other.waypoints.asList(), false); } else { ArrayList<cgWaypoint> newPoints = new ArrayList<cgWaypoint>(waypoints.asList()); - cgWaypoint.mergeWayPoints(newPoints, other.getWaypoints(), false); - waypoints.set(newPoints); + cgWaypoint.mergeWayPoints(newPoints, other.waypoints.asList(), false); + this.setWaypoints(newPoints, false); } if (spoilers == null) { spoilers = other.spoilers; |