Scribus > Beginner Talk

ALIGN_BLOCK

(1/1)

cel:
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: ---setTextAlignment(ALIGN_BLOCK, name)
--- End code ---

but the result is the forced block align. Equal to
--- Code: ---setTextAlignment(ALIGN_FORCED, name)
--- End code ---

When I execute
--- Code: ---ALIGN_LEFT
ALIGN_CENTERED
ALIGN_RIGHT
ALIGN_BLOCK
ALIGN_FORCED

--- End code ---

The result is

--- Code: ---0
1
2
4
4

--- End code ---

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



cel:
Okay. Here is my workaround:

--- Code: ---setTextAlignment(3, name)
--- End code ---

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

Navigation

[0] Message Index

Go to full version