Selecting Text with text tool no longer changes layer
Summary:
Pasting text to a textbox does not work if a different, hidden layer is selected in the layer window.
Steps to reproduce:
You need an image with a hidden layer and a text box in a different, not hidden layer.
- Select the layer that is hidden
- Select the text tool
- Click into the textbox that is not hidden
- Try to paste something, nothing happens
- A warning is produced saying "Current layer is hidden. Unhide it to be able to draw on it."
What happened?
The text I want to paste in that textbox does not appear. Instead it tells you that "Current layer is hidden. Unhide it to be able to draw on it.".
What should have happened?
It's reasonable to assume that if a user clicks into a textbox, actively sets the cursor somewhere and then pastes text that it should paste the text at the appropriate cursor position. It should not care if another layer that just happens to be currently selected is hidden, because the textbox and its content itself are NOT hidden or inside of a hidden hierarchy and should thus be editable. The hidden layer in the layer selection does not have any connection to the textbox you want to draw into so it should not prevent you from pasting text.
Sample attachments:
Version info
Inkscape 1.4.2 (ebf0e940d0, 2025-05-08)
Compile (Run)
GLib version: 2.84.2
GTK version: 3.24.49 (3.24.49)
glibmm version: 2.66.8
gtkmm version: 3.24.10
libxml2 version: 2.14.3
libxslt version: 1.1.43
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.56.3 (1.56.3)
HarfBuzz version: 11.2.1 (11.2.1)
OS version: EndeavourOS