Bulia said:
Whoa. In fact this reveals a bigger problem which I'm not immediately sure how to fix.
In SVG, you can attach text ONLY to a path - that is, <path> element. Nothing else. This works for Inkscape ellipses, stars, and spirals, because they are implemented as <path> with some extension attributes. But rectangle is not - it's the <rect> element of SVG. So, while Inkscape allows you to put text on rect, this won't render in other SVG software (Adobe drops the text, Batik gives an error message).
The best solution is to switch Inkscape rectangles to using <path> as well, as we switched ellipses some time ago. But this is a relatively big change which I don't want to do before the release. So, for now, should I put in a quick and dirty check forbidding the user from putting a text to a rectangle?
No. I'd say leave it as it is until we can fix it properly. At present text to path with a rectangle shape gives text on the inside. However, if you then flip the rectangle it goes to the outside. Actually this works for all the shapes.
vellum