1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-04-20 20:29:10 +02:00

Compare commits

...

2 Commits

2 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ static void setWaypointProperties(Waypoint &waypoint,
QColor color(0x7e, 0x7e, 0x7e);
int size = MARKER_SIZE_MEDIUM;
if (!properties.isObject()) {
if (properties.isObject()) {
QJsonObject o(properties.toObject());
if (o["name"].isString())

View File

@ -488,6 +488,8 @@ void KMLParser::track(SegmentData &segment)
if (_reader.name() == QLatin1String("when")) {
segment.append(Trackpoint());
segment.last().setTimestamp(time());
if (_reader.error())
return;
} else if (_reader.name() == QLatin1String("coord")) {
if (i == segment.size()) {
_reader.raiseError(error);