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

Some more file open logic fix/improvement

This commit is contained in:
Martin Tůma 2021-07-22 00:32:36 +02:00
parent dc6a57338e
commit 7676a21fc3

View File

@ -134,7 +134,6 @@ void VectorTile::polys(const RectC &rect, int bits, bool baseMap,
rgnHdl = new SubFile::Handle(_rgn); rgnHdl = new SubFile::Handle(_rgn);
lblHdl = new SubFile::Handle(_lbl); lblHdl = new SubFile::Handle(_lbl);
netHdl = new SubFile::Handle(_net); netHdl = new SubFile::Handle(_net);
nodHdl = new SubFile::Handle(_nod);
} }
if (!subdiv->initialized() && !_rgn->subdivInit(*rgnHdl, subdiv)) if (!subdiv->initialized() && !_rgn->subdivInit(*rgnHdl, subdiv))
@ -150,6 +149,8 @@ void VectorTile::polys(const RectC &rect, int bits, bool baseMap,
*lblHdl, &l); *lblHdl, &l);
if (_net && _net->hasLinks()) { if (_net && _net->hasLinks()) {
if (!nodHdl)
nodHdl = new SubFile::Handle(_nod);
if (!nodHdl2) if (!nodHdl2)
nodHdl2 = new SubFile::Handle(_nod); nodHdl2 = new SubFile::Handle(_nod);
_rgn->links(*rgnHdl, subdiv, shift, _net, *netHdl, _nod, *nodHdl, _rgn->links(*rgnHdl, subdiv, shift, _net, *netHdl, _nod, *nodHdl,