Scribus Forums

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

Title: ALIGN_BLOCK
Post by: cel on March 31, 2011, 07: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:
Code: [Select]
setTextAlignment(ALIGN_BLOCK, name)
but the result is the forced block align. Equal to
Code: [Select]
setTextAlignment(ALIGN_FORCED, name)
When I execute
Code: [Select]
ALIGN_LEFT
ALIGN_CENTERED
ALIGN_RIGHT
ALIGN_BLOCK
ALIGN_FORCED

The result is
Code: [Select]
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, 07:05:27 pm
Okay. Here is my workaround:
Code: [Select]
setTextAlignment(3, name)
Guess, there's a typo in the declaration.  :P