plug-ins: Don't load image for ICO thumbnail

Due to a small typo, GIMP always loaded the entire image as a thumbnail
even if a suitable one was found.
This patch fixes that typo.
This commit is contained in:
Alx Sa 2023-06-17 04:42:34 +00:00
parent e5a4336604
commit 2065db7fe7
1 changed files with 2 additions and 2 deletions

View File

@ -502,7 +502,7 @@ ico_load_thumb (GimpProcedure *procedure,
image = ico_load_thumbnail_image (file,
&width, &height, 0, &error);
if (image)
if (! image)
return gimp_procedure_new_return_values (procedure,
GIMP_PDB_EXECUTION_ERROR,
error);
@ -541,7 +541,7 @@ ani_load_thumb (GimpProcedure *procedure,
image = ani_load_image (file, TRUE,
&width, &height, &error);
if (image)
if (! image)
return gimp_procedure_new_return_values (procedure,
GIMP_PDB_EXECUTION_ERROR,
error);