From 9ae62df553fd7e7f24164d60aa2864b96b98dbef Mon Sep 17 00:00:00 2001 From: Karine Delvare Date: Tue, 23 May 2006 16:11:44 +0000 Subject: [PATCH] don't execute gimp_rectangle_tool_response() twice. Fixes bug #342506. 2006-05-23 Karine Delvare * app/tools/gimpnewrectselecttool.c: don't execute gimp_rectangle_tool_response() twice. Fixes bug #342506. --- ChangeLog | 5 +++++ app/tools/gimpnewrectselecttool.c | 3 ++- app/tools/gimprectangleselecttool.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57f05e873f..1194755e4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-23 Karine Delvare + + * app/tools/gimpnewrectselecttool.c: don't execute + gimp_rectangle_tool_response() twice. Fixes bug #342506. + 2006-05-23 Sven Neumann It makes more sense to have GimpData::dirty indicate a name change diff --git a/app/tools/gimpnewrectselecttool.c b/app/tools/gimpnewrectselecttool.c index 856372653b..47ab6015d9 100644 --- a/app/tools/gimpnewrectselecttool.c +++ b/app/tools/gimpnewrectselecttool.c @@ -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 diff --git a/app/tools/gimprectangleselecttool.c b/app/tools/gimprectangleselecttool.c index 856372653b..47ab6015d9 100644 --- a/app/tools/gimprectangleselecttool.c +++ b/app/tools/gimprectangleselecttool.c @@ -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