]> err.no Git - libchamplain/commitdiff
Don't generate a million criticals if the image is not found
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 9 Feb 2009 20:20:55 +0000 (22:20 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 9 Feb 2009 20:31:40 +0000 (22:31 +0200)
champlain/champlain-tile.c

index fe5766097fc886d090dbf846b12f370cd60d8b22..94bda028b54278746baa4a73f7a925b3635498e0 100644 (file)
@@ -57,6 +57,8 @@ static void
 create_error_tile(Map* map, Tile* tile)
 {
   tile->actor = clutter_texture_new_from_file(DATADIR "/champlain/error.svg", NULL);
+  if (!tile->actor)
+    return;
 
   tile_set_position(map, tile);