mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
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:
parent
7aa33bf771
commit
af8ef61a04
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue