[gimp/goat-invasion: 107/526] 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/526] app: don't call gimp_layer_get_edit_mask() when the layer has no mask
- Date: Sun, 22 Apr 2012 13:08:16 +0000 (UTC)
commit f21eb5192c9e141cbb42ee8f9cb51d2b3e65f58b
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]