Scribus Forums

Scribus => Beginner Talk => Topic started by: cel on March 31, 2011, 06:20:30 PM

Title: ALIGN_BLOCK
Post by: cel on March 31, 2011, 06:20:30 PM
Hi,

I've got  a problem with the Scripter:

I want scribus to change the align of my text to justified align: I tryed this command:
setTextAlignment(ALIGN_BLOCK, name)

but the result is the forced block align. Equal tosetTextAlignment(ALIGN_FORCED, name)

When I execute ALIGN_LEFT
ALIGN_CENTERED
ALIGN_RIGHT
ALIGN_BLOCK
ALIGN_FORCED


The result is
0
1
2
4
4


I'm kinda confused now. Did you do this on purpose or is it just a bug?



Title: Re: ALIGN_BLOCK
Post by: cel on April 01, 2011, 06:05:27 PM
Okay. Here is my workaround:
setTextAlignment(3, name)

Guess, there's a typo in the declaration.  :P