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