mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
The craft-ods cutover (#4513) built the workbook with Workbook::new(), which already holds an empty Sheet1, and appended the ODS tables after it. Opening an ODS file therefore showed an empty first sheet, and ods_import_keeps_cached_values_and_reports_limits (plus the reader's own sheets[0] tests) failed. It also stopped making sheet names unique and valid, so two tables named Data and data became two sheets with clashing names. Clear the default sheet as the XLSX, XLS and XLSB readers do, and name sheets through SheetNames again, as the reader did before the cutover. That restores SheetNames::insert, which the previous commit removed while it was unused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>