[gimp/gimp-2-10] app: in GimpTransformGridTool, remove flip-tool hack



commit 08c540ebc149a60d99f33763fc9068dd98e4ba37
Author: Ell <ell_se yahoo com>
Date:   Mon Feb 4 02:55:54 2019 -0500

    app: in GimpTransformGridTool, remove flip-tool hack
    
    The flip tool is not a subclass of GimpTransformGridTool; this is
    a leftover from GimpTransformTool.
    
    (cherry picked from commit 3ebda874b5f02842e3f8b7e2845492fb5e3e1477)

 app/tools/gimptransformgridtool.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/app/tools/gimptransformgridtool.c b/app/tools/gimptransformgridtool.c
index 5badcef12a..d903f84f05 100644
--- a/app/tools/gimptransformgridtool.c
+++ b/app/tools/gimptransformgridtool.c
@@ -370,13 +370,6 @@ gimp_transform_grid_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 (! tg_tool->widget)
-        {
-          gimp_transform_grid_tool_response (NULL, GTK_RESPONSE_OK, tg_tool);
-          return;
-        }
-
       /* We're done with an interaction, save it on the undo list */
       gimp_transform_grid_tool_push_internal_undo (tg_tool);
     }


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