changeset 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 0806d31e3c9c
children 004a00a46149
files src/ChangeLog src/image.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jun 16 02:44:20 2004 +0000
+++ b/src/ChangeLog	Wed Jun 16 02:45:09 2004 +0000
@@ -1,3 +1,7 @@
+2004-06-16  Miles Bader  <miles@gnu.org>
+
+	* image.c (lookup_image_type): Initialize image type if necessary.
+
 2004-06-15  Kim F. Storm  <storm@cua.dk>
 
 	* xdisp.c (try_cursor_movement): Exclude header line from scroll
--- 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;