app, pdb: fix incorrect group checks for edit-cut and edit-named-cut

As a follow up to the previous commit, I noticed that the pdb functions
gimp-edit-cut and gimp-edit-named-cut also incorrectly used
gimp_pdb_item_is_group.

This can be seen by calling Filters/Blur/Tileable blur when a group
layer is selected. The error message was incorrect.
We replace the call here also to `! gimp_pdb_item_is_not_group`.
This commit is contained in:
Jacob Boerema 2024-04-15 18:13:18 -04:00
parent 7aa33bf771
commit af8ef61a04
2 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ edit_cut_invoker (GimpProcedure *procedure,
{ {
if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL, if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL,
GIMP_PDB_ITEM_CONTENT, error) || GIMP_PDB_ITEM_CONTENT, error) ||
gimp_pdb_item_is_group (GIMP_ITEM (drawables[i]), error)) ! gimp_pdb_item_is_not_group (GIMP_ITEM (drawables[i]), error))
{ {
success = FALSE; success = FALSE;
break; break;
@ -369,7 +369,7 @@ edit_named_cut_invoker (GimpProcedure *procedure,
{ {
if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL, if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL,
GIMP_PDB_ITEM_CONTENT, error) || GIMP_PDB_ITEM_CONTENT, error) ||
gimp_pdb_item_is_group (GIMP_ITEM (drawables[i]), error)) ! gimp_pdb_item_is_not_group (GIMP_ITEM (drawables[i]), error))
{ {
success = FALSE; success = FALSE;
break; break;

View file

@ -58,7 +58,7 @@ HELP
{ {
if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL, if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL,
GIMP_PDB_ITEM_CONTENT, error) || GIMP_PDB_ITEM_CONTENT, error) ||
gimp_pdb_item_is_group (GIMP_ITEM (drawables[i]), error)) ! gimp_pdb_item_is_not_group (GIMP_ITEM (drawables[i]), error))
{ {
success = FALSE; success = FALSE;
break; break;
@ -381,7 +381,7 @@ HELP
{ {
if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL, if (! gimp_pdb_item_is_attached (GIMP_ITEM (drawables[i]), NULL,
GIMP_PDB_ITEM_CONTENT, error) || GIMP_PDB_ITEM_CONTENT, error) ||
gimp_pdb_item_is_group (GIMP_ITEM (drawables[i]), error)) ! gimp_pdb_item_is_not_group (GIMP_ITEM (drawables[i]), error))
{ {
success = FALSE; success = FALSE;
break; break;