Ahem. Of course the load fails when you can't open the file :o)

SVN revision: 2853
This commit is contained in:
Christian Kreibich 2000-06-22 11:22:42 +00:00
parent e9746c22f2
commit 94c4ad783c
1 changed files with 4 additions and 1 deletions

View File

@ -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;