From 211ff46487943843bca52d5e0c6f8c78ae841c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 15 Feb 2023 01:39:33 +0100 Subject: [PATCH] Report the correct error message on invalid "when" tag --- src/data/kmlparser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/kmlparser.cpp b/src/data/kmlparser.cpp index 70821315..bbae32fa 100644 --- a/src/data/kmlparser.cpp +++ b/src/data/kmlparser.cpp @@ -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);