summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2019-11-16 17:12:58 +0100
committerKim Woelders <kim@woelders.dk>2019-12-23 10:53:26 +0100
commitc60ad00b1e96ad43afdc54313b28d6441d4ace8f (patch)
treedaa119bf16f8b63eac21e1ff698f12facdb57733
parent0f4c0d9453a0c63ffcdde3f9605830b3a13dcf8b (diff)
downloadimlib2-c60ad00b1e96ad43afdc54313b28d6441d4ace8f.tar.gz
image.c: Use real_file to get file time
-rw-r--r--src/lib/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.c b/src/lib/image.c
index 3456d97..ddbc731 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -883,7 +883,7 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress,
{
time_t current_modified_time;
- current_modified_time = __imlib_FileModDate(file);
+ current_modified_time = __imlib_FileModDate(im->real_file);
/* if the file on disk is newer than the cached one */
if (current_modified_time != im->moddate)
{
@@ -921,7 +921,7 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress,
im->key = __imlib_FileKey(file);
}
- im->moddate = __imlib_FileModDate(file);
+ im->moddate = __imlib_FileModDate(im->real_file);
/* ok - just check all our loaders are up to date */
__imlib_RescanLoaders();