mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-20 12:19:11 +02:00
Compare commits
2 Commits
b7415ca2c9
...
7febd2971e
Author | SHA1 | Date | |
---|---|---|---|
7febd2971e | |||
211ff46487 |
@ -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())
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user