formula/source/ui/dlg/funcpage.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit bb4314aa21baec08268e0f02b816a8cf05096ceb
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Fri Jul 8 17:20:52 2022 +0200
Commit:     Andreas Heinisch <andreas.heini...@yahoo.de>
CommitDate: Sat Jul 9 14:39:40 2022 +0200

    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.heini...@yahoo.de>

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())
                     {

Reply via email to