Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-02-23 10:55:55 +01:00
commit fcdfd5827f

View file

@ -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")) {