[gimp/soc-2010-cage-2] app: fix redraw after cancelling a transform tool with right-click cancelling



commit 89636bbc6b29f697d944721d3cc7d1c625b0f143
Author: Mikael Magnusson <mikachu gmail com>
Date:   Sun Nov 7 19:26:25 2010 +0100

    app: fix redraw after cancelling a transform tool with right-click cancelling

 app/tools/gimptransformtool.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 54797c8..c28eb07 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -424,9 +424,6 @@ gimp_transform_tool_button_release (GimpTool              *tool,
     {
       gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
 
-      /* get rid of preview artifacts left outside the drawable's area */
-      gimp_transform_tool_expose_preview (tr_tool);
-
       /*  Restore the previous transformation info  */
       for (i = 0; i < TRANS_INFO_SIZE; i++)
         tr_tool->trans_info[i] = tr_tool->old_trans_info[i];
@@ -437,6 +434,9 @@ gimp_transform_tool_button_release (GimpTool              *tool,
       /*  recalculate the tool's transformation matrix  */
       gimp_transform_tool_recalc (tr_tool, display);
 
+      /* get rid of preview artifacts left outside the drawable's area */
+      gimp_transform_tool_expose_preview (tr_tool);
+
       gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
     }
 
@@ -1866,7 +1866,7 @@ gimp_transform_tool_response (GtkWidget         *widget,
         /*  recalculate the tool's transformation matrix  */
         gimp_transform_tool_recalc (tr_tool, tool->display);
 
-        /* update preview */
+        /* get rid of preview artifacts left outside the drawable's area */
         gimp_transform_tool_expose_preview (tr_tool);
 
         gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]