diff options
author | Miles Bader <[email protected]> | 2004-06-16 02:45:09 +0000 |
---|---|---|
committer | Miles Bader <[email protected]> | 2004-06-16 02:45:09 +0000 |
commit | 803aac3efae5292143813cc0f8357bb0f7787615 (patch) | |
tree | a566fb5023d57360579c954b95e3d160899d4523 /src/image.c | |
parent | 93ff12809fd2b3d9a8b385e99f34edca762f8e38 (diff) |
Revision: [email protected]/emacs--cvs-trunk--0--patch-410
Make sure image types are initialized for lookup too
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 3eccf0f001..438e132807 100644 --- a/src/image.c +++ b/src/image.c @@ -689,6 +689,10 @@ lookup_image_type (symbol) { 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; |