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.
This commit is contained in:
Ell 2018-05-01 17:00:28 -04:00
parent 12908aed8c
commit 6be0bb1358
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}