[JW Lua] FCTextExpressionDef:AssignToCategory changes the UseCategoryFont/UseCategoryPos value

Jan Angermüller jan at angermueller.com
Tue Dec 29 11:15:53 CET 2015


Jari,

when creating a new text expression the AssignToCategory-call seems to 
automatically set the UseCategoryFont and UseCategoryPos values to true, 
even if it was set to false right before.
I have only tested it with FCTextExpressionDef, but it's probably the 
same with FCShapeExpressionDef.

So this code is not good:
...
exprdef.UseCategoryFont=false
exprdef.UseCategoryPos=false
exprdef:AssignToCategory(...)  --overwrites UseCategoryFont and 
UseCategoryPos to true
....

While this code works fine:
...
exprdef:AssignToCategory(...)
exprdef.UseCategoryFont=false
exprdef.UseCategoryPos=false
....

Maybe you could at least update the documentation mentioning that 
UseCategoryFont/UseCategoryPos have to be set after AssignToCategory. 
Also the online documentation for AssignToCategory could mention 
UseCategoryFont and UseCategoryPos.

Jan




More information about the JWLua mailing list