mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-28 17:30:24 +01:00
XLSX: a sheet without kept extensions skips the kept-extension scan on save
write_sheet_extensions called sheet_exts, which lowercases the extensions just written, even when has_kept_exts was false (a preserved sheet with only generated data bars or sparklines).
This commit is contained in:
1 parent
c1bc906ee7
commit
8cee925a0b
1 file changed
+5
-2
@@ -369,8 +369,11 @@ fn write_sheet_extensions(s: &mut String, sheet: &Sheet, x14_cf: &str) {
|
||||
s.push_str("</x14:sparklineGroups></ext>");
|
||||
}
|
||||
if has_exts {
|
||||
let kept_exts = crate::extlist::sheet_exts(sheet, s.get(exts_start..).unwrap_or(""));
|
||||
s.push_str(&kept_exts);
|
||||
// Only a sheet with kept extensions scans what was just written for their URIs.
|
||||
if has_kept_exts {
|
||||
let kept_exts = crate::extlist::sheet_exts(sheet, s.get(exts_start..).unwrap_or(""));
|
||||
s.push_str(&kept_exts);
|
||||
}
|
||||
s.push_str("</extLst>");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user