forked from old/legacy-imlib2
Ahem. Of course the load fails when you can't open the file :o)
SVN revision: 2853
This commit is contained in:
parent
e9746c22f2
commit
94c4ad783c
|
@ -1571,7 +1571,10 @@ xcf_file_init(char* filename)
|
|||
D(("Loading only XCF layer %i.\n", image->single_layer_index));
|
||||
}
|
||||
|
||||
image->fp = fopen (filename, "rb");
|
||||
image->fp = fopen (filename, "r");
|
||||
if (!image->fp)
|
||||
return 0;
|
||||
|
||||
image->filename = filename;
|
||||
image->layers = NULL;
|
||||
image->last_layer = NULL;
|
||||
|
|
Loading…
Reference in New Issue