don't execute gimp_rectangle_tool_response() twice. Fixes bug #342506.

2006-05-23  Karine Delvare  <edhel@gimp.org>

	* app/tools/gimpnewrectselecttool.c: don't execute
	gimp_rectangle_tool_response() twice. Fixes bug #342506.
This commit is contained in:
Karine Delvare 2006-05-23 16:11:44 +00:00 committed by Karine Delvare
parent c3448b2cbf
commit 9ae62df553
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-05-23 Karine Delvare <edhel@gimp.org>
* app/tools/gimpnewrectselecttool.c: don't execute
gimp_rectangle_tool_response() twice. Fixes bug #342506.
2006-05-23 Sven Neumann <sven@gimp.org>
It makes more sense to have GimpData::dirty indicate a name change

View File

@ -243,9 +243,10 @@ gimp_new_rect_select_tool_button_release (GimpTool *tool,
gimp_tool_push_status (tool, display,
_("Click or press enter to create the selection."));
gimp_rectangle_tool_button_release (tool, coords, time, state, display);
if (function >= RECT_RESIZING_UPPER_LEFT && function <= RECT_RESIZING_BOTTOM)
gimp_rectangle_tool_response (NULL, GIMP_RECTANGLE_MODE_EXECUTE, rectangle);
else
gimp_rectangle_tool_button_release (tool, coords, time, state, display);
}
static void

View File

@ -243,9 +243,10 @@ gimp_new_rect_select_tool_button_release (GimpTool *tool,
gimp_tool_push_status (tool, display,
_("Click or press enter to create the selection."));
gimp_rectangle_tool_button_release (tool, coords, time, state, display);
if (function >= RECT_RESIZING_UPPER_LEFT && function <= RECT_RESIZING_BOTTOM)
gimp_rectangle_tool_response (NULL, GIMP_RECTANGLE_MODE_EXECUTE, rectangle);
else
gimp_rectangle_tool_button_release (tool, coords, time, state, display);
}
static void