mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:42:42 +00:00
object.textWrap.make and object.textWrap.options kept an offset outside -1000 to 1000 pt at the nearer end of the range, and read an offset that is not a number, or an invert that is not true or false, as if it had been left out. Both commands now return an error for such a value and leave the wrap options and the undo history unchanged. An omitted or null value still takes the default (6 pt and no invert for Make, the current options for Text Wrap Options), and Text Wrap Options with only null values reads the current options. A stored offset outside the range is kept when only Invert Wrap changes. The MCP text_wrap tool checks offset, invert and release before it changes the selection, so a refused call changes nothing, and a release that is not true or false is an error instead of making a wrap.