Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fcdfd5827f
1 changed files with 8 additions and 0 deletions
|
@ -1164,6 +1164,14 @@ public class GPXUtilities {
|
|||
((WptPt) parse).desc = readText(parser, "desc");
|
||||
} else if (parser.getName().equals("cmt")) {
|
||||
((WptPt) parse).comment = readText(parser, "cmt");
|
||||
} else if (parser.getName().equals("speed") ) {
|
||||
try {
|
||||
String value = readText(parser, "cmt");
|
||||
((WptPt) parse).speed = Float.parseFloat(value);
|
||||
((WptPt) parse).getExtensionsToWrite().put("speed", value);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (parser.getName().equals("link")) {
|
||||
((WptPt) parse).link = parser.getAttributeValue("", "href");
|
||||
} else if (tag.equals("category")) {
|
||||
|
|
Loading…
Reference in a new issue