Flowed text object can't be selected if the first text line overflows
Found when investigating https://bugs.launchpad.net/inkscape/+bug/1768446, but actually a duplicate of https://bugs.launchpad.net/inkscape/+bug/349602
Steps to reproduce:
- open Inkscape
- create a flowed text (click and drag with text tool)
- type something
- do something to make the first line overflow either by
- increasing the font size or
- reducing the size of the flow region or
- adding empty lines before the text
- click somewhere else
- try to select the text again
What happened?
Impossible to select the text again.
What should have happened?
The text can be selected.
This affects both SVG2 flowed text (you get the text back by increasing the height of the rectangle in the <svg:defs>
) and SVG1.1 flowed text (which you get back by increasing the height of the rectangle in <svg:flowRegion>
).
Here's an SVG where both cases are included:
Note that in some cases, i.e. https://bugs.launchpad.net/inkscape/+bug/1768446 or https://bugs.launchpad.net/inkscape/+bug/1571955, the minimum height for the flowRegion in Inkscape 0.48.1 is slightly higher than in Inkscape 1.0.x, so some older texts might not only disappear when opening with a newer version, but vanish from the perspective of the user. (Should I open a new issue for that? Is this still relevant?)
Last note: Contrary to #1320 which is related, I would not consider this a feature request but a bug.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (2a5d477, 2020-01-18)
- Operating System: Windows 10
- Operating System version: 10.0.18362
This has been replicated in
- Inkscape 0.92.3 (Windows 7)
- Ubuntu 8.10, Rev. 21182.
- Ubuntu 9.04, Inkscape build 21303.