Hi,

Contrary to what it says, Esmart_Thumb does not generate a thumb if it
doesn't already exist, as stated for esmart_thumb_new()

Here is a fix for that.

-- 
Chady Kassouf
http://chady.net/
Index: esmart_thumb.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_thumb/esmart_thumb.c,v
retrieving revision 1.11
diff -u -r1.11 esmart_thumb.c
--- esmart_thumb.c	19 Nov 2004 03:18:38 -0000	1.11
+++ esmart_thumb.c	12 Feb 2005 17:03:58 -0000
@@ -74,10 +74,13 @@
 	    {
 	      if (epsilon_exists (e->e) == EPSILON_FAIL)
 		{
-		  esmart_thumb_free (result);
-		  result = NULL;
+		  if (epsilon_generate (e->e) == EPSILON_FAIL)
+		    {
+		       esmart_thumb_free(result);
+		       return NULL;
+		    }
 		}
-	      else if ((e->info = epsilon_info_get (e->e)))
+	      if ((e->info = epsilon_info_get (e->e)))
 		{
 		  Imlib_Image im = NULL;
 		  if ((im = imlib_load_image (epsilon_thumb_file_get (e->e))))

Reply via email to