Commit 1a082a3e authored by Volker Krause's avatar Volker Krause Committed by Torsten Rahn
Browse files

Fix empty/invalid meta tiles being created when things go wrong

mod_tile doesn't trigger a re-render when encountering those, but just
throws an error, so avoid ever getting into that state.
parent 357ad31c
......@@ -20,6 +20,7 @@
#include <QCoreApplication>
#include <QDebug>
#include <QFile>
#include <QSaveFile>
using namespace Marble;
......@@ -61,7 +62,7 @@ int main(int argc, char **argv)
TileDirectory mapTiles(cacheDirectory, QStringLiteral("planet.osmx"), manager, req.tile.z, loadZ);
TileDirectory landTiles(TileDirectory::Landmass, cacheDirectory, manager, req.tile.z);
QFile f(backend.metatileFileName(req));
QSaveFile f(backend.metatileFileName(req));
if (! {
backend.tileError(req, f.errorString());
......@@ -89,6 +90,7 @@ int main(int argc, char **argv)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment