Scripter: is LayerLocked

Previous topic - Next topic

GBW

Having just started to write some simple scripts to control the layer condition prior to exporting to pdf, I have come across what seems like an anomoly. (Maybe I have misunderstood). Essentially the results when calling isLayerLocked(layer) with a script in the console, the values seem incorrect as shown in the attached illustration (layers 2,3 4 for example are not locked but rated 1 = locked:
Can anyone explain?

a.l.e

yep, isLayerLocked() is inverted...

it returns the value of Layers[...]->isEditable.

would you mind opening a ticket for it in the bug tracker, https://bugs.scribus.net ?

MrB


a.l.e