[gimp] app: GimpEditSelectionTool: activate the tool *after* pushing it



commit 9778b6a4400cc33ab412e751297c02cf48923078
Author: Michael Natterer <mitch gimp org>
Date:   Wed Apr 6 20:33:23 2011 +0200

    app: GimpEditSelectionTool: activate the tool *after* pushing it
    
    because pushing sets its focus_display which is now only possible
    while the a tool is not active.

 app/tools/gimpeditselectiontool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c
index bbe5036..0f7bfd6 100644
--- a/app/tools/gimpeditselectiontool.c
+++ b/app/tools/gimpeditselectiontool.c
@@ -441,11 +441,11 @@ gimp_edit_selection_tool_start (GimpTool          *parent_tool,
     edit_select->center_y = (y1 + y2) / 2.0;
   }
 
+  tool_manager_push_tool (display->gimp, tool);
+
   gimp_tool_control_activate (tool->control);
   tool->display = display;
 
-  tool_manager_push_tool (display->gimp, tool);
-
   /*  pause the current selection  */
   gimp_display_shell_selection_pause (shell);
 



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