Commit bed3ca0a authored by Mikael Magnusson's avatar Mikael Magnusson

app: fix right-click cancel after a reset in transformtool

parent 0d17a5c7
...@@ -325,6 +325,7 @@ gimp_transform_tool_button_press (GimpTool *tool, ...@@ -325,6 +325,7 @@ gimp_transform_tool_button_press (GimpTool *tool,
GimpDisplay *display) GimpDisplay *display)
{ {
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool); GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
gint i;
if (tr_tool->function == TRANSFORM_CREATING) if (tr_tool->function == TRANSFORM_CREATING)
gimp_transform_tool_oper_update (tool, coords, state, TRUE, display); gimp_transform_tool_oper_update (tool, coords, state, TRUE, display);
...@@ -332,6 +333,10 @@ gimp_transform_tool_button_press (GimpTool *tool, ...@@ -332,6 +333,10 @@ gimp_transform_tool_button_press (GimpTool *tool,
tr_tool->lastx = coords->x; tr_tool->lastx = coords->x;
tr_tool->lasty = coords->y; 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); gimp_tool_control_activate (tool->control);
} }
...@@ -359,10 +364,6 @@ gimp_transform_tool_button_release (GimpTool *tool, ...@@ -359,10 +364,6 @@ gimp_transform_tool_button_release (GimpTool *tool,
{ {
gimp_transform_tool_response (NULL, GTK_RESPONSE_OK, tr_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 else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment