Author Topic: setText Changes Alignment  (Read 531 times)


  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • Scribus User
setText Changes Alignment
« on: February 18, 2021, 10:56:18 pm »
I create a text frame and set the alignment to "Align Text Right" using the Text Properties window, or to ALIGN_RIGHT using setTextAlignment.  If I then enter text into the frame manually the text aligns right as it should, but if I use setText() from the scripter to populate the frame the alignment suddenly changes to "Align Text Left."  If first use setText() to populate the frame, and then use setTextAlignment() to set ALIGN_RIGHT, then everything is fine.

So, I have a workaround, but I'm wondering if I'm missing something here.  Shouldn't I be able to use setTextAlignment() and then use setText() and have the alignment stay?

I'm on Windows, and I see this in and 1.5.7.svn.
« Last Edit: February 18, 2021, 11:03:28 pm by MattMiller »