Scribus > Text and Typography

setText Changes Alignment


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.


[0] Message Index

Go to full version