double up modified date checks... incase of colon

SVN revision: 5131
This commit is contained in:
Carsten Haitzler 2001-08-12 22:57:19 +00:00
parent 39c1c0eeda
commit fc59b342fa
1 changed files with 3 additions and 0 deletions

View File

@ -1039,6 +1039,8 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress,
time_t current_modified_time; time_t current_modified_time;
current_modified_time = __imlib_FileModDate(file, raw_file_mode); 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 the file on disk is newer than the cached one */
if (current_modified_time > im->moddate) if (current_modified_time > im->moddate)
{ {
@ -1074,6 +1076,7 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress,
im->key = __imlib_FileKey(file); im->key = __imlib_FileKey(file);
} }
im->moddate = __imlib_FileModDate(file, raw_file_mode); 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 */ /* ok - just check all our loaders are up to date */
__imlib_RescanLoaders(); __imlib_RescanLoaders();
/* take a guess by extension on the best loader to use */ /* take a guess by extension on the best loader to use */