[gimp] Refuse to add group layers to indexed images



commit 60ac874cd01f2b797409b30ddde95dbf218552fa
Author: Michael Natterer <mitch gimp org>
Date:   Mon Sep 7 21:08:25 2009 +0200

    Refuse to add group layers to indexed images

 app/actions/layers-actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/layers-actions.c b/app/actions/layers-actions.c
index 34683ad..efb125e 100644
--- a/app/actions/layers-actions.c
+++ b/app/actions/layers-actions.c
@@ -575,7 +575,7 @@ layers_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("layers-new",              image);
   SET_SENSITIVE ("layers-new-last-values",  image);
   SET_SENSITIVE ("layers-new-from-visible", image);
-  SET_SENSITIVE ("layers-new-group",        image);
+  SET_SENSITIVE ("layers-new-group",        image && !indexed);
   SET_SENSITIVE ("layers-duplicate",        layer && !fs && !ac);
   SET_SENSITIVE ("layers-delete",           layer && !ac);
 



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