mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Added missing atlas maps unloading on atlas unload
This commit is contained in:
parent
acc49d015e
commit
e4e3f7d143
@ -295,3 +295,9 @@ void Atlas::draw(QPainter *painter, const QRectF &rect, int mapIndex)
|
||||
map->draw(painter, pr);
|
||||
painter->translate(-offset);
|
||||
}
|
||||
|
||||
void Atlas::unload()
|
||||
{
|
||||
for (int i = 0; i < _maps.count(); i++)
|
||||
_maps.at(i)->unload();
|
||||
}
|
||||
|
@ -29,6 +29,8 @@ public:
|
||||
|
||||
void draw(QPainter *painter, const QRectF &rect);
|
||||
|
||||
void unload();
|
||||
|
||||
bool isValid() const {return _valid;}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user