From 0f6c50d5884abd6f52ecbfa0102821331f90106d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 30 May 2020 13:59:34 +0200 Subject: [PATCH] Added missing support for nested KML Documents --- src/data/kmlparser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/kmlparser.cpp b/src/data/kmlparser.cpp index f0813b0e..24dbaae7 100644 --- a/src/data/kmlparser.cpp +++ b/src/data/kmlparser.cpp @@ -585,7 +585,9 @@ void KMLParser::document(QList &tracks, QList &areas, QVector &waypoints) { while (_reader.readNextStartElement()) { - if (_reader.name() == QLatin1String("Placemark")) + if (_reader.name() == QLatin1String("Document")) + document(tracks, areas, waypoints); + else if (_reader.name() == QLatin1String("Placemark")) placemark(tracks, areas, waypoints); else if (_reader.name() == QLatin1String("Folder")) folder(tracks, areas, waypoints);