[gimp] Bug 676164 - Text Tool selects hidden layers



commit b50e924df0c5cdc86018e72c67584fe4a61dbf6d
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.

 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 8446f16..05bccbb 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]