mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
Some more file open logic fix/improvement
This commit is contained in:
parent
dc6a57338e
commit
7676a21fc3
@ -134,7 +134,6 @@ void VectorTile::polys(const RectC &rect, int bits, bool baseMap,
|
||||
rgnHdl = new SubFile::Handle(_rgn);
|
||||
lblHdl = new SubFile::Handle(_lbl);
|
||||
netHdl = new SubFile::Handle(_net);
|
||||
nodHdl = new SubFile::Handle(_nod);
|
||||
}
|
||||
|
||||
if (!subdiv->initialized() && !_rgn->subdivInit(*rgnHdl, subdiv))
|
||||
@ -150,6 +149,8 @@ void VectorTile::polys(const RectC &rect, int bits, bool baseMap,
|
||||
*lblHdl, &l);
|
||||
|
||||
if (_net && _net->hasLinks()) {
|
||||
if (!nodHdl)
|
||||
nodHdl = new SubFile::Handle(_nod);
|
||||
if (!nodHdl2)
|
||||
nodHdl2 = new SubFile::Handle(_nod);
|
||||
_rgn->links(*rgnHdl, subdiv, shift, _net, *netHdl, _nod, *nodHdl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user