don't use ethumb if no path was set yet.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 9 Oct 2010 18:43:03 +0000 (18:43 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 9 Oct 2010 18:43:03 +0000 (18:43 +0000)
SVN revision: 53235

src/lib/elm_thumb.c

index 1fba42e14d01ef6753efcd7bb1585c43333f9775..ce690235d0d865a8a933576934bdc0046a01e96b 100644 (file)
@@ -251,6 +251,8 @@ _thumb_apply(Widget_Data *wd)
         wd->thumb.id = -1;
      }
 
+   if (!wd->file) return;
+
    ethumb_client_file_set(_elm_ethumb_client, wd->file, wd->key);
    if (ethumb_client_thumb_exists(_elm_ethumb_client))
      {