1
0
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:
Martin Tůma 2017-04-22 10:19:02 +02:00
parent acc49d015e
commit e4e3f7d143
2 changed files with 8 additions and 0 deletions

View File

@ -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();
}

View File

@ -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;}