aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-25 19:57:52 +0000
committerGerd Moellmann1999-09-25 19:57:52 +0000
commit4f7ca1f18a0713dd3e2ebd4aed693c02d33dd16a (patch)
treeb347f514a0f3ca3d26fd174e8386687379e471e1 /src
parent46655c944b0523ec4a31333c2b9761acd95d38c1 (diff)
downloademacs-4f7ca1f18a0713dd3e2ebd4aed693c02d33dd16a.tar.gz
emacs-4f7ca1f18a0713dd3e2ebd4aed693c02d33dd16a.zip
(lookup_image): Set image's timestamp because it's
used when we look it up.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c5
1 files changed, 5 insertions, 0 deletions
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)
6046 int i; 6046 int i;
6047 unsigned hash; 6047 unsigned hash;
6048 struct gcpro gcpro1; 6048 struct gcpro gcpro1;
6049 EMACS_TIME now;
6049 6050
6050 /* F must be a window-system frame, and SPEC must be a valid image 6051 /* F must be a window-system frame, and SPEC must be a valid image
6051 specification. */ 6052 specification. */
@@ -6122,6 +6123,10 @@ lookup_image (f, spec)
6122 } 6123 }
6123 } 6124 }
6124 6125
6126 /* We're using IMG, so set its timestamp to `now'. */
6127 EMACS_GET_TIME (now);
6128 img->timestamp = EMACS_SECS (now);
6129
6125 UNGCPRO; 6130 UNGCPRO;
6126 6131
6127 /* Value is the image id. */ 6132 /* Value is the image id. */