sc/source/filter/oox/autofilterbuffer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d32d90ac556ce75e30e7ecf2d6b6eccbbf4de244
Author:     Markus Mohrhard <markus.mohrh...@googlemail.com>
AuthorDate: Thu Jul 17 09:09:54 2025 +0800
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Aug 7 15:59:46 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 <markus.mohrh...@googlemail.com>
    Tested-by: Jenkins
    Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188697

diff --git a/sc/source/filter/oox/autofilterbuffer.cxx 
b/sc/source/filter/oox/autofilterbuffer.cxx
index 233f81c5a48b..d5567250fc3a 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()

Reply via email to