From bb4314aa21baec08268e0f02b816a8cf05096ceb Mon Sep 17 00:00:00 2001 From: Andreas Heinisch Date: Fri, 8 Jul 2022 17:20:52 +0200 Subject: [PATCH] tdf#146781 - Function wizard: search desired function also in the description Change-Id: I12f2fd5bf3497505a8652ab98bccb495a619333d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136905 Tested-by: Jenkins Reviewed-by: Andreas Heinisch --- formula/source/ui/dlg/funcpage.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx index 553517ce778a..d90bf9ca951b 100644 --- a/formula/source/ui/dlg/funcpage.cxx +++ b/formula/source/ui/dlg/funcpage.cxx @@ -159,7 +159,9 @@ void FuncPage::UpdateFunctionList(const OUString& aStr) for (sal_uInt32 j = 0; j < nFunctionCount; ++j) { TFunctionDesc pDesc(pCategory->getFunction(j)); - if (rCharClass.uppercase(pDesc->getFunctionName()).indexOf(aSearchStr) >= 0) + // tdf#146781 - search for the desired function also in the description + if (rCharClass.uppercase(pDesc->getFunctionName()).indexOf(aSearchStr) >= 0 + || rCharClass.uppercase(pDesc->getDescription()).indexOf(aSearchStr) >= 0) { if (!pDesc->isHidden()) {