GNOME Bugzilla – Bug 127451
Text tool w/ floating layer
Last modified: 2004-12-22 21:47:04 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
I guess GIMP should anchor the floating selection then if the user creates a text layer. Would that be the expected behaviour?
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.
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.
Do you agree that creating a new layer should automatically anchor an existing floating selection?
That sounds like it'd do the expected thing in most of the cases, so I'd agree on that.
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.