diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2024-10-31 08:50:41 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2024-12-10 12:16:41 +0100 |
commit | 21b1e5b6bcc9bc7e549db4555fdb6e21a73f5a32 (patch) | |
tree | 4534ff460c17b20fa043d30715b3e506c882f76c /sc | |
parent | 969f242f2e63deef3609809dbc2d70eeb40d81f4 (diff) |
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.klos@collabora.com>
Change-Id: I53e794d644120c6a2a67453727f1206aa47aa9b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175837
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178204
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/dbfunc.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |