From 4ec2096ea5cec7ff003b183b8f69696baffdf093 Mon Sep 17 00:00:00 2001 From: campbeb Date: Mon, 5 Mar 2012 19:47:31 +0900 Subject: 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. --- main/src/cgeo/geocaching/files/GPXParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/cgeo/geocaching/files/GPXParser.java') 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()); } -- cgit v1.1