From 21b1e5b6bcc9bc7e549db4555fdb6e21a73f5a32 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 31 Oct 2024 08:50:41 +0100 Subject: lok: calc: fix assertion on toggle autofilter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I53e794d644120c6a2a67453727f1206aa47aa9b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175837 Tested-by: Jenkins CollaboraOffice Reviewed-by: Caolán McNamara Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178204 Tested-by: Jenkins --- sc/source/ui/view/dbfunc.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc') 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)); -- cgit v1.2.3