From 12370d7daba3b07ec5071e6fa913dc9592d60a49 Mon Sep 17 00:00:00 2001 From: Jehan Date: Sun, 15 Sep 2024 17:14:37 +0200 Subject: [PATCH] =?UTF-8?q?Issue=20#11808:=20The=20RGBA=20channels=20canno?= =?UTF-8?q?t=20be=20duplicated=20anymore=20or=20used=20with=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … the selection commands. --- app/actions/channels-commands.c | 5 ++++- menus/channels-menu.ui | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/actions/channels-commands.c b/app/actions/channels-commands.c index ecf2d3b43f..e718e890bc 100644 --- a/app/actions/channels-commands.c +++ b/app/actions/channels-commands.c @@ -383,7 +383,6 @@ channels_duplicate_cmd_callback (GimpAction *action, GimpImage *image = NULL; GList *channels; GimpChannel *parent = GIMP_IMAGE_ACTIVE_PARENT; - return_if_no_channels (image, channels, data); if (GIMP_IS_COMPONENT_EDITOR (data)) { @@ -392,6 +391,8 @@ channels_duplicate_cmd_callback (GimpAction *action, const gchar *desc; gchar *name; + return_if_no_image (image, data); + component = GIMP_COMPONENT_EDITOR (data)->clicked_component; gimp_enum_get_value (GIMP_TYPE_CHANNEL_TYPE, component, @@ -415,6 +416,8 @@ channels_duplicate_cmd_callback (GimpAction *action, GList *new_channels = NULL; GList *iter; + return_if_no_channels (image, channels, data); + channels = g_list_copy (channels); gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_CHANNEL_ADD, diff --git a/menus/channels-menu.ui b/menus/channels-menu.ui index 87d273e5cb..572ae04131 100644 --- a/menus/channels-menu.ui +++ b/menus/channels-menu.ui @@ -23,14 +23,14 @@ app.channels-new app.channels-raise app.channels-lower - app.channels-duplicate + channels.channels-duplicate app.channels-delete
- app.channels-selection-replace - app.channels-selection-add - app.channels-selection-subtract - app.channels-selection-intersect + channels.channels-selection-replace + channels.channels-selection-add + channels.channels-selection-subtract + channels.channels-selection-intersect