diff src/image.c @ 56132:56c3ef9caeed

Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410 Make sure image types are initialized for lookup too
author Miles Bader <miles@gnu.org>
date Wed, 16 Jun 2004 02:45:09 +0000
parents a450e67752ed
children 7acb38a05354 4c90ffeb71c5
line wrap: on
line diff
--- a/src/image.c	Wed Jun 16 02:44:20 2004 +0000
+++ b/src/image.c	Wed Jun 16 02:45:09 2004 +0000
@@ -689,6 +689,10 @@
 {
   struct image_type *type;
 
+  /* We must initialize the image-type if it hasn't been already.  */
+  if (NILP (Finit_image_library (symbol)))
+    return 0;			/* unimplemented */
+
   for (type = image_types; type; type = type->next)
     if (EQ (symbol, *type->type))
       break;