sc/source/filter/oox/autofilterbuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e88f995f4085bcdb8e70ba6dbddc43ff6bc543b5 Author: Markus Mohrhard <[email protected]> AuthorDate: Thu Jul 17 09:09:54 2025 +0800 Commit: Markus Mohrhard <[email protected]> CommitDate: Thu Jul 17 07:04:12 2025 +0200 properly display autofilter buttons for XLSB on filtered columns The XLSB property has the inverted logic compared to the XLSX property XLSB: fNoBtn: 0 means "The AutoFilter button for this column will NOT appear in the next column (1) after this one" XLSX: showButton: Flag indicating whether an application intended for editing documents should show filtering interface elements on this cell Change-Id: I440149e28cf31cd16b834cdcc9eb05be4af45fbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187978 Reviewed-by: Markus Mohrhard <[email protected]> Tested-by: Jenkins diff --git a/sc/source/filter/oox/autofilterbuffer.cxx b/sc/source/filter/oox/autofilterbuffer.cxx index dcf8da5fdc9d..39f88ab96778 100644 --- a/sc/source/filter/oox/autofilterbuffer.cxx +++ b/sc/source/filter/oox/autofilterbuffer.cxx @@ -641,7 +641,7 @@ void FilterColumn::importFilterColumn( SequenceInputStream& rStrm ) mnColId = rStrm.readInt32(); nFlags = rStrm.readuInt16(); mbHiddenButton = getFlag( nFlags, BIFF12_FILTERCOLUMN_HIDDENBUTTON ); - mbShowButton = getFlag( nFlags, BIFF12_FILTERCOLUMN_SHOWBUTTON ); + mbShowButton = !getFlag( nFlags, BIFF12_FILTERCOLUMN_SHOWBUTTON ); } ApiFilterSettings FilterColumn::finalizeImport()
