mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 18:16:01 +00:00
Session::place_read and Session::place_queue_read placed a file, or loaded the place cursor, in whichever document was active when the read finished. A job prepared in one document could land in another one that was activated meanwhile, or that stayed open after the first was closed. Replace did not stop it when the other document held an equal object under the same id. PlaceJob, QueueJob and QueueRead now keep the uid of the document they were prepared in. Both calls refuse a read whose document is not the active one with "the document it was prepared for is no longer active", before any selection, edit, tool change or journal entry. Switching back to the original document places the file as before.