mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
- pageItems, pathItems and textFrames build their list of a document again after every edit. The rebuild walked the whole document without counting anything against the run, so a loop that edits and reads a collection in a large document did unbounded host work. A rebuilt list now counts 16 bytes per object (as the selection's list does) against the run's host-call allowance, and the path and type lists count the page items they scan. - An edit's own ordinary error was returned ahead of a stop (an uncatchable Abort) from putting back the selection or switching back to the active document, so a script could catch it and go on. A stop now comes first. - An answer to a waiting call that could not be read as a value (nested too deep, too many entries) ended the run instead of being thrown at the call. It is now thrown there, where the script can catch it, and a ScriptUI dialog that waited for the answer stops showing, as when its host call fails. - The selection cost test also compares the host calls, under the same 64 KiB limit for both documents.