From: Gerd Moellmann Date: Sat, 25 Sep 1999 19:57:52 +0000 (+0000) Subject: (lookup_image): Set image's timestamp because it's X-Git-Tag: emacs-pretest-21.0.90~6625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f7ca1f18a0713dd3e2ebd4aed693c02d33dd16a;p=emacs.git (lookup_image): Set image's timestamp because it's used when we look it up. --- diff --git a/src/xfns.c b/src/xfns.c index c0fb0f5cf2d..e044810f816 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -6046,6 +6046,7 @@ lookup_image (f, spec) 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 @@ lookup_image (f, spec) } } + /* 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. */