mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Fixed crash on invalid KMZ maps
This commit is contained in:
parent
0ac6b697bb
commit
1b842ab2f0
@ -307,7 +307,8 @@ void KMZMap::kml(QXmlStreamReader &reader, QZipReader &zip)
|
||||
|
||||
|
||||
KMZMap::KMZMap(const QString &fileName, QObject *parent)
|
||||
: Map(fileName, parent), _zoom(0), _mapIndex(-1), _zip(0), _ratio(1.0)
|
||||
: Map(fileName, parent), _zoom(0), _mapIndex(-1), _zip(0), _ratio(1.0),
|
||||
_valid(false)
|
||||
{
|
||||
QZipReader zip(fileName, QIODevice::ReadOnly);
|
||||
QByteArray xml(zip.fileData("doc.kml"));
|
||||
|
Loading…
Reference in New Issue
Block a user