[gimp/goat-invasion: 107/608] app: don't call gimp_layer_get_edit_mask() when the layer has no mask
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 107/608] app: don't call gimp_layer_get_edit_mask() when the layer has no mask
- Date: Fri, 27 Apr 2012 20:34:23 +0000 (UTC)
commit b73e25588408c02fd14e97444b1a4b77079af6b6
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 17 22:49:50 2012 +0100
app: don't call gimp_layer_get_edit_mask() when the layer has no mask
app/widgets/gimplayertreeview.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 5734f61..4f3f9f3 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -1318,9 +1318,12 @@ gimp_layer_tree_view_layer_clicked (GimpCellRendererViewable *cell,
{
GimpLayer *layer = GIMP_LAYER (renderer->viewable);
- if (gimp_layer_get_edit_mask (layer))
- gimp_action_group_set_action_active (group,
- "layers-mask-edit", FALSE);
+ if (gimp_layer_get_mask (layer) &&
+ gimp_layer_get_edit_mask (layer))
+ {
+ gimp_action_group_set_action_active (group,
+ "layers-mask-edit", FALSE);
+ }
g_object_unref (renderer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]