Prevent error message from loading imageclass without image file.
SVN revision: 38625
This commit is contained in:
parent
d4c8938aad
commit
7026d408d2
10
src/iclass.c
10
src/iclass.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue