mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 07:13:46 +00:00
Opening a native file read its JSON twice: once for the document and once more for the saved pdfCompatible preference. The format crate now takes the preference from craft-vectorcraft-format's Contents::read_with_pdf_preference (craft-libs#562), so a file is read in one pass. That method refuses a pdfCompatible that is not a boolean, which main opens by skipping the value and falling back to whether the file carries a PDF. Such a file, or one with any other data error, is read again with Contents::read and scanned for the preference as before, so the files that open today still open with the same result. The craft-vectorcraft-format pin moves to 1b34eba41e, the craft-libs revision craft-update already uses.