From 4854bff31b9584d4da89d92e422472c041f52e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 1 Feb 2019 00:25:41 +0100 Subject: [PATCH] Fixed KML Polygons loading --- src/data/kmlparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/kmlparser.cpp b/src/data/kmlparser.cpp index ed394afd..8a52ea17 100644 --- a/src/data/kmlparser.cpp +++ b/src/data/kmlparser.cpp @@ -296,14 +296,14 @@ void KMLParser::polygon(Area &area) while (_reader.readNextStartElement()) { if (_reader.name() == QLatin1String("outerBoundaryIs")) { - if (!area.isEmpty()) { + if (!polygon.isEmpty()) { _reader.raiseError("Multiple polygon outerBoundaryIss"); return; } polygon.append(QVector()); boundary(polygon.last()); } else if (_reader.name() == QLatin1String("innerBoundaryIs")) { - if (area.isEmpty()) { + if (polygon.isEmpty()) { _reader.raiseError("Missing polygon outerBoundaryIs"); return; }