[gimp] app: fix GimpForegroundSelectTool pen cursor drawing
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix GimpForegroundSelectTool pen cursor drawing
- Date: Wed, 30 Mar 2011 19:25:29 +0000 (UTC)
commit 55f80cd7589acc7617728ddb8f80274dfac43350
Author: Michael Natterer <mitch gimp org>
Date: Wed Mar 30 21:24:04 2011 +0200
app: fix GimpForegroundSelectTool pen cursor drawing
It seems some of the junk removed in the last commit did have a
purpose :) Also use a tool progress because it's the result of a
canvas interaction.
app/tools/gimpforegroundselecttool.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpforegroundselecttool.c b/app/tools/gimpforegroundselecttool.c
index 70ae7d3..17a2e8e 100644
--- a/app/tools/gimpforegroundselecttool.c
+++ b/app/tools/gimpforegroundselecttool.c
@@ -289,6 +289,14 @@ gimp_foreground_select_tool_oper_update (GimpTool *tool,
if (fg_select->mask && display == tool->display)
{
+ GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
+
+ gimp_draw_tool_pause (draw_tool);
+
+ fg_select->last_coords = *coords;
+
+ gimp_draw_tool_resume (draw_tool);
+
if (fg_select->strokes)
status = _("Add more strokes or press Enter to accept the selection");
else
@@ -645,7 +653,7 @@ gimp_foreground_select_tool_select (GimpFreeSelectTool *free_sel,
options->smoothness,
options->sensitivity,
! options->contiguous,
- GIMP_PROGRESS (display));
+ GIMP_PROGRESS (fg_select));
fg_select->refinement = SIOX_REFINEMENT_NO_CHANGE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]