From d33bcd1e5599b94925bf751391f53ec43d17ee26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 24 Apr 2021 05:17:12 +0200 Subject: [PATCH] Also read subsequent spatial indexes on the same level --- src/data/gpiparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/gpiparser.cpp b/src/data/gpiparser.cpp index ac993228..385c9da4 100644 --- a/src/data/gpiparser.cpp +++ b/src/data/gpiparser.cpp @@ -622,6 +622,10 @@ static void readPOIDatabase(DataStream &stream, QVector &waypoints, if (rh.flags & 0x8) { while (stream.status() == QDataStream::Ok && ds < rh.size) { switch(stream.nextHeaderType()) { + case 8: + ds += readSpatialIndex(stream, waypoints, polygons, + fileName, imgId); + break; case 5: // symbol case 7: // category default: