[gimp] app: always set text-tool image when starting the editor
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: always set text-tool image when starting the editor
- Date: Tue, 1 May 2018 21:08:37 +0000 (UTC)
commit 6be0bb135825c4105b0ffc74629e90b6a15cd66e
Author: Ell <ell_se yahoo com>
Date: Tue May 1 17:00:28 2018 -0400
app: always set text-tool image when starting the editor
In GimpTextTool, when starting the editor in response to a button
press, always set the text tool's image first, so that the style
editor picks the correct resolution for the text-size entry.
Currently the image is only set when clicking inside the active
drawable's bounds.
app/tools/gimptexttool.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index c5156da..bffac2b 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -523,6 +523,12 @@ gimp_text_tool_button_press (GimpTool *tool,
/* create a new text layer */
text_tool->text_box_fixed = FALSE;
+ /* make sure the text tool has an image, even if the user didn't click
+ * inside the active drawable, in particular, so that the text style
+ * editor picks the correct resolution.
+ */
+ gimp_text_tool_set_image (text_tool, image);
+
gimp_text_tool_connect (text_tool, NULL, NULL);
gimp_text_tool_editor_start (text_tool);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]