Prevent error message from loading imageclass without image file.

SVN revision: 38625
This commit is contained in:
Kim Woelders 2009-01-18 11:17:20 +00:00
parent d4c8938aad
commit 7026d408d2
1 changed files with 7 additions and 3 deletions

View File

@ -250,9 +250,13 @@ ImagestateRealize(ImageState * is)
if (is->im) /* Image is already loaded */
return;
/* not loaded, load and setup */
if (!is->real_file && is->im_file)
is->real_file = ThemeFileFind(is->im_file);
if (!is->real_file)
{
if (!is->im_file)
return; /* No file - quit */
/* not loaded, load and setup */
is->real_file = ThemeFileFind(is->im_file);
}
if (is->real_file)
{
is->im = EImageLoad(is->real_file);