X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fsave%2FGpxExporter.java;h=f7de8f73485ee87fba0789730a4c0e20b85243eb;hb=1db53356139320890a8d10e982865a1899e11b81;hp=88ac7914c29a1b92a235ff426e782f07ca4fcae3;hpb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;p=GpsPrune.git
diff --git a/src/tim/prune/save/GpxExporter.java b/src/tim/prune/save/GpxExporter.java
index 88ac791..f7de8f7 100644
--- a/src/tim/prune/save/GpxExporter.java
+++ b/src/tim/prune/save/GpxExporter.java
@@ -347,6 +347,7 @@ public class GpxExporter extends GenericFunction implements Runnable
+ " " + _exportFile.getAbsolutePath());
// export successful so need to close dialog and return
_dialog.dispose();
+ _app.informDataSaved();
return;
}
catch (IOException ioe)
@@ -583,6 +584,7 @@ public class GpxExporter extends GenericFunction implements Runnable
}
source = replaceGpxTags(source, "", "",
XmlUtils.fixCdata(inPoint.getFieldValue(Field.DESCRIPTION)));
+ source = replaceGpxTags(source, "", "", inPoint.getFieldValue(Field.COMMENT));
}
// photo / audio links
if (source != null && (inPoint.hasMedia() || source.indexOf("") > 0)) {
@@ -733,13 +735,21 @@ public class GpxExporter extends GenericFunction implements Runnable
inWriter.write(XmlUtils.fixCdata(inPoint.getWaypointName().trim()));
inWriter.write("\n");
// description, if any
- String desc = XmlUtils.fixCdata(inPoint.getFieldValue(Field.DESCRIPTION));
+ final String desc = XmlUtils.fixCdata(inPoint.getFieldValue(Field.DESCRIPTION));
if (desc != null && !desc.equals(""))
{
inWriter.write("\t\t");
inWriter.write(desc);
inWriter.write("\n");
}
+ // comment, if any
+ final String comment = XmlUtils.fixCdata(inPoint.getFieldValue(Field.COMMENT));
+ if (comment != null && !comment.equals(""))
+ {
+ inWriter.write("\t\t");
+ inWriter.write(comment);
+ inWriter.write("\n");
+ }
// Media links, if any
if (inSettings.getExportPhotoPoints() && inPoint.getPhoto() != null)
{