parent
131c7e9857
commit
8cb92acb78
|
@ -941,7 +941,7 @@ __imlib_LoadImage(char *file,
|
||||||
}
|
}
|
||||||
errno = 0;
|
errno = 0;
|
||||||
}
|
}
|
||||||
/* width is still 0 - the laoder didnt manage to do anything */
|
/* width is still 0 - the loader didnt manage to do anything */
|
||||||
if (im->w == 0)
|
if (im->w == 0)
|
||||||
{
|
{
|
||||||
ImlibLoader *l, *previous_l = NULL;
|
ImlibLoader *l, *previous_l = NULL;
|
||||||
|
@ -1007,7 +1007,6 @@ __imlib_LoadImage(char *file,
|
||||||
previous_l->next = l->next;
|
previous_l->next = l->next;
|
||||||
l->next = loaders;
|
l->next = loaders;
|
||||||
loaders = l;
|
loaders = l;
|
||||||
im->loader = l;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1020,8 +1019,8 @@ __imlib_LoadImage(char *file,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the laod succeeded - make sure the image is refernenced then add */
|
/* the load succeeded - make sure the image is referenced then add */
|
||||||
/* it to our cache if dont_cache isnt set */
|
/* it to our cache if dont_cache isn't set */
|
||||||
im->references = 1;
|
im->references = 1;
|
||||||
if (!dont_cache)
|
if (!dont_cache)
|
||||||
__imlib_AddImageToCache(im);
|
__imlib_AddImageToCache(im);
|
||||||
|
|
Loading…
Reference in New Issue