[gimp] app: GimpPaintTool: don't call paint_core_paint(FINISH) in control(HALT)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpPaintTool: don't call paint_core_paint(FINISH) in control(HALT)
- Date: Fri, 1 Apr 2011 21:31:32 +0000 (UTC)
commit 0c7cd5b8a108e0c16c008ed8822461b4f3b7d768
Author: Michael Natterer <mitch gimp org>
Date: Fri Apr 1 11:35:19 2011 +0200
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).
app/tools/gimppainttool.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/app/tools/gimppainttool.c b/app/tools/gimppainttool.c
index 2ac7fd1..d0e502f 100644
--- a/app/tools/gimppainttool.c
+++ b/app/tools/gimppainttool.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]