summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2022-07-08 17:20:52 +0200
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2022-07-09 14:39:40 +0200
commitbb4314aa21baec08268e0f02b816a8cf05096ceb (patch)
tree475f989d16bf7c1ae960fa16a6231d01ed4255f4 /formula
parent77ead3d8c01b3663b0ff701a934f10b602252412 (diff)
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 <andreas.heinisch@yahoo.de>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcpage.cxx4
1 files changed, 3 insertions, 1 deletions
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())
{