1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 11:52:08 +01:00

Fixed crash on GMP tiles without LBL or NET parts

This commit is contained in:
Martin Tůma 2020-02-08 16:01:22 +01:00
parent d63c666997
commit fac0bae006

View File

@ -80,10 +80,10 @@ bool VectorTile::initGMP()
&& _gmp->readUInt32(hdl, net))) && _gmp->readUInt32(hdl, net)))
return false; return false;
_tre = new TREFile(_gmp, tre); _tre = tre ? new TREFile(_gmp, tre) : 0;
_rgn = new RGNFile(_gmp, rgn); _rgn = rgn ? new RGNFile(_gmp, rgn) : 0;
_lbl = new LBLFile(_gmp, lbl); _lbl = lbl ? new LBLFile(_gmp, lbl) : 0;
_net = new NETFile(_gmp, net); _net = net ? new NETFile(_gmp, net) : 0;
return true; return true;
} }