From fc59b342fa625450c94890ecd86953829164f9c9 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 12 Aug 2001 22:57:19 +0000 Subject: [PATCH] double up modified date checks... incase of colon SVN revision: 5131 --- src/image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/image.c b/src/image.c index 4bf117e..9c41e35 100644 --- a/src/image.c +++ b/src/image.c @@ -1039,6 +1039,8 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress, time_t current_modified_time; current_modified_time = __imlib_FileModDate(file, raw_file_mode); + if (!current_modified_time) + current_modified_time = __imlib_FileModDate(file, 1 - raw_file_mode); /* if the file on disk is newer than the cached one */ if (current_modified_time > im->moddate) { @@ -1074,6 +1076,7 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress, im->key = __imlib_FileKey(file); } im->moddate = __imlib_FileModDate(file, raw_file_mode); + if (!im->moddate) im->moddate = __imlib_FileModDate(file, 1 - raw_file_mode); /* ok - just check all our loaders are up to date */ __imlib_RescanLoaders(); /* take a guess by extension on the best loader to use */