sc/source/ui/view/dbfunc.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 21b1e5b6bcc9bc7e549db4555fdb6e21a73f5a32
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Oct 31 08:50:41 2024 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue Dec 10 12:16:41 2024 +0100

    lok: calc: fix assertion on toggle autofilter
    
    Steps to reproduce:
        Open attached spreadsheet
        type "date" in D1
        type any date eg. 2020-02-02 in D2
        Select all data visible ~ A1:D7
        Insert -> Autofilter
    
    result: crash
    
    Signed-off-by: Szymon Kłos <szymon.k...@collabora.com>
    Change-Id: I53e794d644120c6a2a67453727f1206aa47aa9b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175837
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178204
    Tested-by: Jenkins

diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx
index 0123cbf648f7..875531b37924 100644
--- a/sc/source/ui/view/dbfunc.cxx
+++ b/sc/source/ui/view/dbfunc.cxx
@@ -347,8 +347,7 @@ void ScDBFunc::ToggleAutoFilter()
                                                                                
            VclMessageType::Question,
                                                                                
            VclButtonsType::YesNo,
                                                                                
            // header from first row?
-                                                                               
            ScResId(STR_MSSG_MAKEAUTOFILTER_0),
-                                                                               
            SfxViewShell::Current()));
+                                                                               
            ScResId(STR_MSSG_MAKEAUTOFILTER_0)));
                 xBox->set_title(ScResId(STR_MSSG_DOSUBTOTALS_0)); // "StarCalc"
                 xBox->set_default_response(RET_YES);
                 xBox->SetInstallLOKNotifierHdl(LINK(this, ScDBFunc, 
InstallLOKNotifierHdl));

Reply via email to