[gimp/gimp-2-8] Bug 740059 - Text tool changes from "Dynamic" to "Fixed"...



commit 069bb4b078f19a327965ebf2b898eb48736317e4
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 28 23:57:06 2014 +0100

    Bug 740059 - Text tool changes from "Dynamic" to "Fixed"...
    
    after text box moved using Alt key
    
    In gimp_text_tool_button_release(), handle the "moving" case
    separately instead of running into the default else branch that
    assumes the user clicked outside and made a new text layer.
    
    (cherry picked from commit 293e5bde9e478c489ac6396e67cdd1782427414c)

 app/tools/gimptexttool.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index acfc871..5c31502 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -543,6 +543,13 @@ gimp_text_tool_button_release (GimpTool              *tool,
       if (release_type == GIMP_BUTTON_RELEASE_CANCEL)
         release_type = GIMP_BUTTON_RELEASE_NORMAL;
     }
+  else if (text_tool->moving)
+    {
+      /*  the user has moved the text layer with Alt-drag, fall
+       *  through and let rectangle-change-complete do its job of
+       *  setting text layer's new position.
+       */
+    }
   else if (gimp_rectangle_tool_get_function (rect_tool) ==
            GIMP_RECTANGLE_TOOL_DEAD)
     {


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