mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
On Linux and the BSDs, Copy reads the clipboard's text before it writes. When the app that held the clipboard does not answer that read within its wait, the read stays open, and the next Paste waits for its answer. Once it came, Paste read the clipboard again as text only and compared that with the Copy. A Copy whose SVG markup does not go out as text (art with more than 1 MiB of placed images) puts only a bitmap on the clipboard, so the text never matched, and Paste took that bitmap: one picture at 72 ppi in place of the copied objects, in the same document or another one. Paste now reads the clipboard as the Copy wrote it (text or bitmap) before it compares, whatever the late read was, and takes the internal clipboard when it matches.