forked from old/legacy-imlib2
don't attempt to save an image without image data
SVN revision: 8973
This commit is contained in:
parent
e850bf67cc
commit
6edd0ecd3b
|
@ -254,6 +254,9 @@ save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity)
|
|||
ImlibImageTag *tag;
|
||||
int quality = 75, compression = 3, num_passes = 1, pass;
|
||||
|
||||
if (!im->data)
|
||||
return 0;
|
||||
|
||||
f = fopen(im->real_file, "wb");
|
||||
if (!f)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue