[gimp] Bug 676107 - Picking logic doesn't take group visibility into account



commit 4d1173570a1191a55cfb32ce488b4c315db9f56e
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 15 19:46:47 2012 +0200

    Bug 676107 - Picking logic doesn't take group visibility into account
    
    gimp_layer_get_opacity_at(): use gimp_item_is_visible() not
    get_visible() so we use the layer's effective visibility.

 app/core/gimplayer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index 65cb70b..747bb82 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -1026,7 +1026,7 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
 
   if (x >= 0 && x < gimp_item_get_width  (GIMP_ITEM (layer)) &&
       y >= 0 && y < gimp_item_get_height (GIMP_ITEM (layer)) &&
-      gimp_item_get_visible (GIMP_ITEM (layer)))
+      gimp_item_is_visible (GIMP_ITEM (layer)))
     {
       if (! gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]