1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Report the correct error message on invalid "when" tag

This commit is contained in:
Martin Tůma 2023-02-15 01:39:33 +01:00
parent b7415ca2c9
commit 211ff46487

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);