mirror of https://github.com/GNOME/gimp.git
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:
parent
22a832b357
commit
0e901776e6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue