After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 127451 - Text tool w/ floating layer
Text tool w/ floating layer
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: Normal normal
: 2.0
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2003-11-20 05:18 UTC by Seth Burgess
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Seth Burgess 2003-11-20 05:18:59 UTC
copy/paste a selection to create a floating layer.  
Use text tool to create a text layer; this occurs between the floating
layer and the text layer.
Try to anchor the floating layer by pressing the anchor icon - doesn't work
(doesn't appear to do anything).

You can anchor by right clicking on the pasted layer and selecting Anchor
layer.

Seth
Comment 1 Sven Neumann 2003-11-20 10:57:48 UTC
I guess GIMP should anchor the floating selection then if the user
creates a text layer. Would that be the expected behaviour?
Comment 2 Seth Burgess 2003-11-20 16:13:54 UTC
I think that the anchor icon in the layers dialog should work just
like the right-click-on-layer->anchor layer.  Only the latter seems to
anchor currently.

On a more feature-requestish note, it'd be nice to have layers not
involved in a possible anchor be grayed out or otherwise indicated in
the layers dialog, including any that get added with the text tool.
Comment 3 Sven Neumann 2003-11-20 23:51:06 UTC
From looking at the code it seems unlikely that the two do different
things. The callbacks of the button and the menu entry are basically
identical. And indeed they do the same thing. The problem here is that
the newly created text layer becomes the active layer of the image.
The layers dialog doesn't reflect this however. After you clicked on
the floating selection (for example in order to get to the right click
menu) it becomes active. When that happened, the anchor button works
again.
Comment 4 Sven Neumann 2003-11-22 13:44:52 UTC
Do you agree that creating a new layer should automatically anchor an
existing floating selection?
Comment 5 Seth Burgess 2003-11-26 01:45:32 UTC
That sounds like it'd do the expected thing in most of the cases, so
I'd agree on that.
Comment 6 Michael Natterer 2004-01-19 17:21:57 UTC
Fixed in CVS:

2004-01-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): if there
	is a floating selection, anchor it before adding the text layer.
	Fixes bug #127451.

	Also fixed some issues with undo. Addresses, but does not fix
	bug #124969 and bug #130985.