[libchamplain/libchamplain-0-2: 4/12] Don't generate a million criticals if the image is not found



commit 70b95834dd02f6eff169d6d474b06cb762ec39a9
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Mon Feb 9 22:20:55 2009 +0200

    Don't generate a million criticals if the image is not found
---
 champlain/tile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/champlain/tile.c b/champlain/tile.c
index de1ae37..5d117f7 100644
--- a/champlain/tile.c
+++ b/champlain/tile.c
@@ -56,6 +56,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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]