From 6f8b6c33e010a404bffdc28ec68fadd6ba58aae0 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 22 Oct 2026 02:35:01 +0000 Subject: [PATCH] Integration: #1225 write a dxf's border before its protection Schema order is font, numFmt, fill, alignment, border, protection. --- crates/xlsx/src/styles.rs | 6 +++--- crates/xlsx/src/tests/fixtures.rs | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/crates/xlsx/src/styles.rs b/crates/xlsx/src/styles.rs index 49ef72ca5..42a3853da 100644 --- a/crates/xlsx/src/styles.rs +++ b/crates/xlsx/src/styles.rs @@ -716,12 +716,12 @@ pub fn write_styles(wb: &Workbook, dxfs: &[Style], extra_fmts: &[String]) -> (St if let Some(a) = alignment_xml(&d.align) { dx.push_str(&a); } - if st.protection || d.protection != def.protection { - let _ = write!(dx, "