diff options
| author | koem <koem@petoria.de> | 2013-02-09 18:14:29 +1300 |
|---|---|---|
| committer | koem <koem@petoria.de> | 2013-02-11 08:16:24 +1300 |
| commit | 8bc22701fbef17c24de6f2f8af282da08eba5766 (patch) | |
| tree | 7f81de606dab7eb5dab6d20cac2af1c00b99ceba /main/src/cgeo/geocaching/export/GpxExport.java | |
| parent | 509cefa3af847129bf40cff15437183d950752a7 (diff) | |
| download | cgeo-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.java | 9 |
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"); } |
