Align and Distribute: Text on path changes relative position to text
Migrated from: https://bugs.launchpad.net/inkscape/+bug/684324
Steps to reproduce:
- open Inkscape
- create a path
- create a text
- Text -> Text on Path
- Select everything
- Align and Distribute -> Treat Selection as Group (i.e. center the entire drawing on the page)
- Center on page
What happened?
While horizontally centering seems fine, vertically centering applies the offset twice to the text. It becomes displaced from the path.
What should have happened?
I said "Treat as Group". The relative position should stay identical.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67c, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info:
Replicated since 2010.
This is a bug because, as an example, if you have a drawing with many paths with text applied to (like, for exmple, in a complex diagram) and you need to center it in the page, you cannot use the "Align and Distribute" dialog without first deselecting all texts attached to a path (aargh!).
From a usability standpoint, yes, it's a bug - technically I'm not sure (the transformation is applied to each of the objects in the selection; the text object put-on-the-path therefore gets it twice (once inheriting it from the path, and once the one applied to the text object). On the other hand the 'Transform' dialog seems to get it right, at least for 'Move' and 'Skew' (but not for 'Rotate'): unless the option 'Apply to each object separately' is active (disperse selection), the relation between path and text-put-on-the-path stays intact (apparently using the same compensation as when transforming by mouse - after the mouse button is released)
In my tests, Transform works fine even for rotating.