[gimp] Bug 740059 - Text tool changes from "Dynamic" to "Fixed"...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 740059 - Text tool changes from "Dynamic" to "Fixed"...
- Date: Fri, 28 Nov 2014 22:59:07 +0000 (UTC)
commit 293e5bde9e478c489ac6396e67cdd1782427414c
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.
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 cca66a0..e07590e 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -545,6 +545,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]