[gimp] app: FG select: fix condition for upchaining in key_press()



commit a18f196dd3f00194fcf06cc0ac5134c33a7416d9
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 17 01:59:34 2014 +0200

    app: FG select: fix condition for upchaining in key_press()
    
    Fixes committing the free select using return.

 app/tools/gimpforegroundselecttool.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpforegroundselecttool.c b/app/tools/gimpforegroundselecttool.c
index 9900eb1..79aca79 100644
--- a/app/tools/gimpforegroundselecttool.c
+++ b/app/tools/gimpforegroundselecttool.c
@@ -414,11 +414,9 @@ gimp_foreground_select_tool_key_press (GimpTool    *tool,
 {
   GimpForegroundSelectTool *fg_select = GIMP_FOREGROUND_SELECT_TOOL (tool);
 
-  if (fg_select->state == MATTING_STATE_PAINT_TRIMAP)
+  if (fg_select->state == MATTING_STATE_FREE_SELECT)
     {
-      return GIMP_TOOL_CLASS (parent_class)->key_press (tool,
-                                                        kevent,
-                                                        display);
+      return GIMP_TOOL_CLASS (parent_class)->key_press (tool, kevent, display);
     }
   else
     {


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