app: GimpBrightnessContrastTool: don't call gimp_tool_control_pause()/resume()

It must not be called directly, and is entirely useless here anyway.
This commit is contained in:
Michael Natterer 2011-03-30 11:44:12 +02:00
parent d92b22c567
commit 28c48b1857
1 changed files with 0 additions and 4 deletions

View File

@ -274,8 +274,6 @@ gimp_brightness_contrast_tool_motion (GimpTool *tool,
{ {
GimpBrightnessContrastTool *bc_tool = GIMP_BRIGHTNESS_CONTRAST_TOOL (tool); GimpBrightnessContrastTool *bc_tool = GIMP_BRIGHTNESS_CONTRAST_TOOL (tool);
gimp_tool_control_pause (tool->control);
bc_tool->dx = (coords->x - bc_tool->x); bc_tool->dx = (coords->x - bc_tool->x);
bc_tool->dy = - (coords->y - bc_tool->y); bc_tool->dy = - (coords->y - bc_tool->y);
@ -283,8 +281,6 @@ gimp_brightness_contrast_tool_motion (GimpTool *tool,
"brightness", CLAMP (bc_tool->dy, -127.0, 127.0) / 127.0, "brightness", CLAMP (bc_tool->dy, -127.0, 127.0) / 127.0,
"contrast", CLAMP (bc_tool->dx, -127.0, 127.0) / 127.0, "contrast", CLAMP (bc_tool->dx, -127.0, 127.0) / 127.0,
NULL); NULL);
gimp_tool_control_resume (tool->control);
} }