sc/source/ui/view/dbfunc.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit fe040625c27a1c9a471240538a92f5bf5d0c991f 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: Thu Oct 31 10:21:40 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> diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index 0f24677ab25c..b061a5982a1b 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));