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 */