Bug 664728 - XCF files with only one layer not loading properly

In file_open_with_proc_and_display(), don't use the passed load_proc
(which can be NULL) but the actually used load_proc to determine if
the file was imported.
This commit is contained in:
Michael Natterer 2011-11-28 01:32:49 +01:00
parent 22a832b357
commit 0e901776e6
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ file_open_with_proc_and_display (Gimp *gimp,
* files. To solve this properly, we would need new file plug-in
* API.
*/
if (! file_proc)
file_proc = gimp_image_get_load_proc (image);
if (file_open_file_proc_is_import (file_proc) &&
gimp_image_get_n_layers (image) == 1)
{