Text moves horizontally when switching selected text between flush left and flush right

Migrated from https://bugs.launchpad.net/inkscape/+bug/591852

Steps to reproduce:

  • open Inkscape
  • create a text (regular text, not flowed text)
  • select a part of it
  • Align the text to the right

What happened?

The text is shifted horizontally by its length.

What should have happened?

The text stays in place.

You get even more movement to the right when alternating between different alignments.

This bug is especially annoying when trying to align text inside a "regular" text object. Follow the instructions in this file:

drawing-1.svg

and get the following result:

text_flush

Inkscape Version and Operating System:

  • Inkscape Version: 1.1-dev (12e2a09, 2020-02-19)
  • Operating System: Windows 10
  • Operating System version: 10.0.18362

Migration information

Apparently, it's a regression:

Compared to Inkscape 0.47 this is a regression: while in 0.47 the baseline anchor stayed fixed and the text object moved to the left, middle or right of it, the behavior was predictable and consistent.

Reproduction information:

  • r9458 (linux)
  • Inkscape 0.47+devel r9495 on OS X 10.5.8
  • Windows XP, Inkscape trunk revision 11652.
  • 0.48.1 r9760 on ubuntu 11.04
  • Arch Linux 64-bit, KDE Plasma 5 Inkscape 0.92pre1 15073 (GTK3)
Edited by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information