[gimp] app: fix right-click cancel after a reset in transformtool
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix right-click cancel after a reset in transformtool
- Date: Sat, 13 Aug 2011 11:34:42 +0000 (UTC)
commit bed3ca0ada35999871ff93eba376ef252a5302c0
Author: Mikael Magnusson <mikachu src gnome org>
Date: Sat Aug 13 13:32:23 2011 +0200
app: fix right-click cancel after a reset in transformtool
app/tools/gimptransformtool.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 873b22d..5b2a7cd 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -325,6 +325,7 @@ gimp_transform_tool_button_press (GimpTool *tool,
GimpDisplay *display)
{
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
+ gint i;
if (tr_tool->function == TRANSFORM_CREATING)
gimp_transform_tool_oper_update (tool, coords, state, TRUE, display);
@@ -332,6 +333,10 @@ gimp_transform_tool_button_press (GimpTool *tool,
tr_tool->lastx = coords->x;
tr_tool->lasty = coords->y;
+ /* Store current trans_info */
+ for (i = 0; i < TRANS_INFO_SIZE; i++)
+ tr_tool->prev_trans_info[i] = tr_tool->trans_info[i];
+
gimp_tool_control_activate (tool->control);
}
@@ -359,10 +364,6 @@ gimp_transform_tool_button_release (GimpTool *tool,
{
gimp_transform_tool_response (NULL, GTK_RESPONSE_OK, tr_tool);
}
-
- /* Store current trans_info */
- for (i = 0; i < TRANS_INFO_SIZE; i++)
- tr_tool->prev_trans_info[i] = tr_tool->trans_info[i];
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]