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.
This commit is contained in:
Michael Natterer
2012-05-15 19:46:47 +02:00
parent 503c56545d
commit 4d1173570a

View File

@ -1026,7 +1026,7 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
if (x >= 0 && x < gimp_item_get_width (GIMP_ITEM (layer)) && if (x >= 0 && x < gimp_item_get_width (GIMP_ITEM (layer)) &&
y >= 0 && y < gimp_item_get_height (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))) if (! gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
{ {