diff options
| author | campbeb <bpcampbell@gmail.com> | 2012-03-05 19:47:31 +0900 |
|---|---|---|
| committer | campbeb <bpcampbell@gmail.com> | 2012-03-05 19:47:31 +0900 |
| commit | 4ec2096ea5cec7ff003b183b8f69696baffdf093 (patch) | |
| tree | 85b1fc5bd587718ec495baf189f53f59ee603a67 /main/src/cgeo/geocaching/files/GPXParser.java | |
| parent | 12e87a9d50ed2e58ed83d1db81c62d46c5bb8f4e (diff) | |
| download | cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.zip cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.tar.gz cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.tar.bz2 | |
Refactor so all waypoint operations are done through the Cache object.
Check for editing a waypoint when adding.
Save cache after waypoint operations so finalDefined is set correctly.
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
| -rw-r--r-- | main/src/cgeo/geocaching/files/GPXParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index 081a28a..10f3fa8 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -320,7 +320,7 @@ public abstract class GPXParser extends FileParser { mergedWayPoints.addAll(cacheForWaypoint.getWaypoints()); cgWaypoint.mergeWayPoints(mergedWayPoints, Collections.singletonList(waypoint), true); - cacheForWaypoint.setWaypoints(mergedWayPoints); + cacheForWaypoint.setWaypoints(mergedWayPoints, false); result.put(cacheGeocodeForWaypoint, cacheForWaypoint); showProgressMessage(progressHandler, progressStream.getProgress()); } |
