summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-10-29 17:58:37 +0200
committerEike Rathke <erack@redhat.com>2016-10-29 17:59:05 +0200
commit8a0318e4f81ed4ec8871010669a300f6aff4e80d (patch)
treefa54f8c8ffcf444f3ea96de0ca4a394ca2da091d
parent70e97ade2f8dd6f61574dca985074f550db0630f (diff)
filter hidden functions also in search, tdf#67974 follow-up
Change-Id: Iaa23759e01d8f86bfc5c0bbd8b333cd331b7b8cd
-rw-r--r--formula/source/ui/dlg/funcpage.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx
index 096822499d92..0986dc05216c 100644
--- a/formula/source/ui/dlg/funcpage.cxx
+++ b/formula/source/ui/dlg/funcpage.cxx
@@ -176,8 +176,12 @@ void FuncPage::UpdateFunctionList(const OUString& aStr)
TFunctionDesc pDesc(pCategory->getFunction(j));
if (pCharClassPtr->uppercase(pDesc->getFunctionName()).indexOf(aSearchStr) >= 0)
{
- m_pLbFunction->SetEntryData(
- m_pLbFunction->InsertEntry(pDesc->getFunctionName()), const_cast<IFunctionDescription *>(pDesc));
+ if (!pDesc->isHidden())
+ {
+ m_pLbFunction->SetEntryData(
+ m_pLbFunction->InsertEntry(
+ pDesc->getFunctionName()), const_cast<IFunctionDescription *>(pDesc));
+ }
}
}
}