mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
Fix PivotTable page header location
This commit is contained in:
@@ -908,9 +908,9 @@ fn table_xml(pt: &PivotTable, idx: usize, cache_id: u32, c: &Cache, fmt_id: &dyn
|
||||
} else {
|
||||
row_levels.max(1)
|
||||
};
|
||||
// Two or more value fields in Columns alone: Excel 365 would add a `Values` caption row
|
||||
// when field headers are shown.
|
||||
let hide_values_row = col_values.is_some() && col_idx.is_empty() && pt.show_headers;
|
||||
// Two or more value fields in Columns alone: Excel 365 adds a `Values` caption row
|
||||
// when field headers are shown. Page-filter layouts retain their classic header row.
|
||||
let hide_values_row = col_values.is_some() && col_idx.is_empty() && pages.is_empty() && pt.show_headers;
|
||||
let first_header_row = usize::from(!hide_values_row);
|
||||
let _ = write!(
|
||||
s,
|
||||
|
||||
Reference in New Issue
Block a user