mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 03:29:16 +02:00
Report the correct error message on invalid "when" tag
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user