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.
This commit is contained in:
Michael Natterer 2011-04-06 20:33:23 +02:00
parent b659aec9a7
commit 9778b6a440
1 changed files with 2 additions and 2 deletions

View File

@ -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);