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:
parent
b7415ca2c9
commit
211ff46487
@ -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…
Reference in New Issue
Block a user