mirror of https://github.com/GNOME/gimp.git
Bug 794926 - Foreground select tool: several critical errors when ...
... double click during trimap painting Disable double click when the tool is in trimap paint state.
This commit is contained in:
parent
6ebc3f1b09
commit
440be88035
|
@ -291,6 +291,12 @@ gimp_foreground_select_tool_initialize (GimpTool *tool,
|
|||
|
||||
tool->display = display;
|
||||
|
||||
/* enable double click for the FreeSelectTool, because it may have been
|
||||
* disabled if the tool has switched to MATTING_STATE_PAINT_TRIMAP,
|
||||
* in gimp_foreground_select_tool_set_trimap().
|
||||
*/
|
||||
gimp_tool_control_set_wants_double_click (tool->control, TRUE);
|
||||
|
||||
fg_select->state = MATTING_STATE_FREE_SELECT;
|
||||
|
||||
if (! fg_select->gui)
|
||||
|
@ -1019,6 +1025,9 @@ gimp_foreground_select_tool_set_trimap (GimpForegroundSelectTool *fg_select)
|
|||
|
||||
gimp_tool_control_set_toggled (tool->control, FALSE);
|
||||
|
||||
/* disable double click in paint trimap state */
|
||||
gimp_tool_control_set_wants_double_click (tool->control, FALSE);
|
||||
|
||||
fg_select->state = MATTING_STATE_PAINT_TRIMAP;
|
||||
|
||||
gimp_foreground_select_tool_update_gui (fg_select);
|
||||
|
|
Loading…
Reference in New Issue