Fix gpx utilities

This commit is contained in:
Victor Shcherb 2019-05-29 15:14:32 +02:00
parent 133f305ceb
commit c2f51cd832

View file

@ -858,13 +858,13 @@ public class GPXUtilities {
public GPXFile(String title, String lang, String description) { public GPXFile(String title, String lang, String description) {
this.metadata = new Metadata(); this.metadata = new Metadata();
if(description != null) { if(description != null) {
metadata.extensions.put("desc", description); metadata.getExtensionsToWrite().put("desc", description);
} }
if(lang != null) { if(lang != null) {
metadata.extensions.put("article_lang", lang); metadata.getExtensionsToWrite().put("article_lang", lang);
} }
if(title != null) { if(title != null) {
metadata.extensions.put("article_title", title); metadata.getExtensionsToWrite().put("article_title", title);
} }
} }