aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/export/GpxExport.java
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2013-02-09 18:14:29 +1300
committerkoem <koem@petoria.de>2013-02-11 08:16:24 +1300
commit8bc22701fbef17c24de6f2f8af282da08eba5766 (patch)
tree7f81de606dab7eb5dab6d20cac2af1c00b99ceba /main/src/cgeo/geocaching/export/GpxExport.java
parent509cefa3af847129bf40cff15437183d950752a7 (diff)
downloadcgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.zip
cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.gz
cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.bz2
Icons for OC
- new icons for opencaching - changed some icons because of copyright - english strings for opencaching attributes - german strings for opencaching attributes - new script to show (missing) strings for attributes - new script to edit svg files from thenounproject.com - new script to generate enums - ocicons.html: list of all OC icons
Diffstat (limited to 'main/src/cgeo/geocaching/export/GpxExport.java')
-rw-r--r--main/src/cgeo/geocaching/export/GpxExport.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java
index 4997923..05bea5a 100644
--- a/main/src/cgeo/geocaching/export/GpxExport.java
+++ b/main/src/cgeo/geocaching/export/GpxExport.java
@@ -322,13 +322,16 @@ class GpxExport extends AbstractExport {
gpx.startTag(PREFIX_GROUNDSPEAK, "attributes");
for (String attribute : cache.getAttributes()) {
- final CacheAttribute attr = CacheAttribute.getByGcRawName(CacheAttribute.trimAttributeName(attribute));
+ final CacheAttribute attr = CacheAttribute.getByRawName(CacheAttribute.trimAttributeName(attribute));
+ if (attr == null) {
+ continue;
+ }
final boolean enabled = CacheAttribute.isEnabled(attribute);
gpx.startTag(PREFIX_GROUNDSPEAK, "attribute");
- gpx.attribute("", "id", Integer.toString(attr.id));
+ gpx.attribute("", "id", Integer.toString(attr.gcid));
gpx.attribute("", "inc", enabled ? "1" : "0");
- gpx.text(attr.getL10n(enabled));
+ gpx.text(attr.getGcL10n(enabled));
gpx.endTag(PREFIX_GROUNDSPEAK, "attribute");
}