Commit b8584289 authored by Michael Natterer's avatar Michael Natterer 😴

app: brightness-contrast: move gimp_tool_control_activate,halt() around a bit

parent 33c84f38
......@@ -213,8 +213,9 @@ gimp_brightness_contrast_tool_button_press (GimpTool *tool,
bc_tool->dx = contrast * 127.0;
bc_tool->dy = - brightness * 127.0;
gimp_tool_control_activate (tool->control);
tool->display = display;
gimp_tool_control_activate (tool->control);
}
}
......@@ -235,10 +236,10 @@ gimp_brightness_contrast_tool_button_release (GimpTool *tool,
}
else
{
bc_tool->dragging = FALSE;
gimp_tool_control_halt (tool->control);
bc_tool->dragging = FALSE;
if (bc_tool->dx == 0 && bc_tool->dy == 0)
return;
......
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