[core] get rid of empty buffer warning

fix #3148
This commit is contained in:
Ansis Brammanis
2016-04-04 14:34:34 -07:00
parent d46f24cdf8
commit e7742f2fe9

View File

@@ -14,7 +14,9 @@ void Painter::renderTileDebug(const Tile& tile) {
assert(tile.data);
if (data.getDebug() != MapDebugOptions::NoDebug) {
prepareTile(tile);
renderDebugText(*tile.data, tile.matrix);
if (data.getDebug() & (MapDebugOptions::Timestamps | MapDebugOptions::ParseStatus)) {
renderDebugText(*tile.data, tile.matrix);
}
if (data.getDebug() & MapDebugOptions::TileBorders) {
renderDebugFrame(tile.matrix);
}