(lookup_image): Set image's timestamp because it's
used when we look it up.
This commit is contained in:
parent
46655c944b
commit
4f7ca1f18a
1 changed files with 5 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue