diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-12 07:24:07 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-12 07:24:07 +0200 |
| commit | a402554ca9f1a63f6cbd93961bef36ff5700fc2c (patch) | |
| tree | 5e38ac6624b16d0efabac6a5c4bab50f78c0b512 /main/src/cgeo/geocaching/export | |
| parent | e4978ecfbdd755d585470cc963141e65966fe433 (diff) | |
| download | cgeo-a402554ca9f1a63f6cbd93961bef36ff5700fc2c.zip cgeo-a402554ca9f1a63f6cbd93961bef36ff5700fc2c.tar.gz cgeo-a402554ca9f1a63f6cbd93961bef36ff5700fc2c.tar.bz2 | |
fix: GPX export missing attributes, logs, and others
Diffstat (limited to 'main/src/cgeo/geocaching/export')
| -rw-r--r-- | main/src/cgeo/geocaching/export/GpxExport.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java index 554db2c..084a378 100644 --- a/main/src/cgeo/geocaching/export/GpxExport.java +++ b/main/src/cgeo/geocaching/export/GpxExport.java @@ -90,11 +90,8 @@ class GpxExport extends AbstractExport { for (int i = 0; i < caches.size(); i++) { - cgCache cache = caches.get(i); - - if (!cache.isDetailed()) { - cache = cgeoapplication.getInstance().loadCache(caches.get(i).getGeocode(), LoadFlags.LOAD_ALL_DB_ONLY); - } + // reload the cache. otherwise logs, attributes and other detailed information is not available + final cgCache cache = cgeoapplication.getInstance().loadCache(caches.get(i).getGeocode(), LoadFlags.LOAD_ALL_DB_ONLY); gpx.write("<wpt "); gpx.write("lat=\""); |
