[gimp] gimptransformtool: Restore code that apparently was for the flip tool



commit da795c12678e1d41ff52aafd20368365d9336ca5
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Thu Sep 20 15:17:15 2012 +0200

    gimptransformtool: Restore code that apparently was for the flip tool

 app/tools/gimptransformtool.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index e532044..3664086 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -408,6 +408,12 @@ gimp_transform_tool_button_release (GimpTool              *tool,
 
   if (release_type != GIMP_BUTTON_RELEASE_CANCEL)
     {
+      /* This hack is to perform the flip immediately with the flip tool */
+      if (! tr_tool->use_grid)
+        {
+          gimp_transform_tool_response (NULL, GTK_RESPONSE_OK, tr_tool);
+        }
+
       /* We're done with an interaction, save it on the undo list */
       gimp_transform_tool_push_internal_undo (tr_tool);
     }



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