app: GimpPaintTool: don't call paint_core_paint(FINISH) in control(HALT)

because that simply can't happen (we call paint(FINISH) in
button_release() already and press and release are always paired. Only
call paint_core_cleanup() in control(HALT).
This commit is contained in:
Michael Natterer 2011-04-01 11:35:19 +02:00
parent e1bc19faf6
commit 0c7cd5b8a1
1 changed files with 0 additions and 6 deletions

View File

@ -215,8 +215,6 @@ gimp_paint_tool_control (GimpTool *tool,
GimpDisplay *display)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpImage *image = gimp_display_get_image (display);
GimpDrawable *drawable = gimp_image_get_active_drawable (image);
switch (action)
{
@ -225,10 +223,6 @@ gimp_paint_tool_control (GimpTool *tool,
break;
case GIMP_TOOL_ACTION_HALT:
gimp_paint_core_paint (paint_tool->core,
drawable,
GIMP_PAINT_TOOL_GET_OPTIONS (tool),
GIMP_PAINT_STATE_FINISH, 0);
gimp_paint_core_cleanup (paint_tool->core);
break;
}