changeset 86 | d4a62899587f |
parent 56 | d5e3089906da |
child 177 | b2768f3982f3 |
--- a/src/lib/tile.c Mon Jan 25 04:29:32 2010 +0200 +++ b/src/lib/tile.c Mon Jan 25 04:33:38 2010 +0200 @@ -78,6 +78,10 @@ int pt_tile_render (struct pt_tile *tile) { + // validate dimensions + if (!tile->info.width || !tile->info.height) + RETURN_ERROR(PT_ERR_TILE_DIM); + return pt_cache_tile(tile->cache, tile); }