changeset 25817:190a99688b53

(lookup_image): Set image's timestamp because it's used when we look it up.
author Gerd Moellmann <gerd@gnu.org>
date Sat, 25 Sep 1999 19:57:52 +0000
parents 2d53a03a3baa
children c5458623cf16
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Sep 25 19:57:50 1999 +0000
+++ b/src/xfns.c	Sat Sep 25 19:57:52 1999 +0000
@@ -6046,6 +6046,7 @@
   int i;
   unsigned hash;
   struct gcpro gcpro1;
+  EMACS_TIME now;
 
   /* F must be a window-system frame, and SPEC must be a valid image
      specification.  */
@@ -6122,6 +6123,10 @@
 	}
     }
 
+  /* We're using IMG, so set its timestamp to `now'.  */
+  EMACS_GET_TIME (now);
+  img->timestamp = EMACS_SECS (now);
+  
   UNGCPRO;
   
   /* Value is the image id.  */