[gimp/gimp-2-8] Bug 676164 - Text Tool selects hidden layers
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 676164 - Text Tool selects hidden layers
- Date: Wed, 16 May 2012 22:19:28 +0000 (UTC)
commit be2feeb11175732cb59c2a5acbcc027145310243
Author: Michael Natterer <mitch gimp org>
Date: Thu May 17 00:07:46 2012 +0200
Bug 676164 - Text Tool selects hidden layers
Also fix the other layer picking functions to not pick invisible
layers.
(cherry picked from commit b50e924df0c5cdc86018e72c67584fe4a61dbf6d)
app/core/gimpimage-pick-layer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpimage-pick-layer.c b/app/core/gimpimage-pick-layer.c
index 70e5c91..7eeff6f 100644
--- a/app/core/gimpimage-pick-layer.c
+++ b/app/core/gimpimage-pick-layer.c
@@ -78,7 +78,7 @@ gimp_image_pick_layer_by_bounds (const GimpImage *image,
{
GimpLayer *layer = list->data;
- if (gimp_item_get_visible (GIMP_ITEM (layer)))
+ if (gimp_item_is_visible (GIMP_ITEM (layer)))
{
gint off_x, off_y;
gint width, height;
@@ -127,7 +127,8 @@ gimp_image_pick_text_layer (const GimpImage *image,
x >= off_x &&
y >= off_y &&
x < off_x + gimp_item_get_width (GIMP_ITEM (layer)) &&
- y < off_y + gimp_item_get_height (GIMP_ITEM (layer)))
+ y < off_y + gimp_item_get_height (GIMP_ITEM (layer)) &&
+ gimp_item_is_visible (GIMP_ITEM (layer)))
{
g_list_free (all_layers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]