app: Prevent grabbing handles after halting in the blend tool.

This commit is contained in:
Michael Henning 2014-06-19 16:53:41 -04:00
parent 5839b5e4af
commit 31dfc44313
1 changed files with 8 additions and 3 deletions

View File

@ -281,9 +281,6 @@ gimp_blend_tool_button_press (GimpTool *tool,
gimp_blend_tool_halt (blend_tool);
}
if (! tool->display)
gimp_blend_tool_start (blend_tool, display);
switch (gimp_blend_tool_get_point_under_cursor (blend_tool))
{
case POINT_NONE:
@ -306,6 +303,14 @@ gimp_blend_tool_button_press (GimpTool *tool,
break;
}
/*
* gimp_blend_tool_start comes after determining what point is grabbed, so
* whenever we're starting the tool, gimp_blend_tool_get_point_under_cursor()
* returns POINT_NONE
*/
if (! tool->display)
gimp_blend_tool_start (blend_tool, display);
tool->display = display;
gimp_blend_tool_update_items (blend_tool);