[gimp/gimp-2-8] Bug 676107 - Picking logic doesn't take group visibility into account
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 676107 - Picking logic doesn't take group visibility into account
- Date: Tue, 15 May 2012 17:51:01 +0000 (UTC)
commit 8d6004e06305d246258b00ed0baf6ce66748b04d
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.
(cherry picked from commit 4d1173570a1191a55cfb32ce488b4c315db9f56e)
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 5666d27..7e9aab3 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -988,7 +988,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 the point is inside, and the layer has no
* alpha channel, success!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]