[Libreoffice-commits] core.git: formula/source
Eike Rathke
erack at redhat.com
Sat Oct 29 15:59:45 UTC 2016
formula/source/ui/dlg/funcpage.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 8a0318e4f81ed4ec8871010669a300f6aff4e80d
Author: Eike Rathke <erack at redhat.com>
Date: Sat Oct 29 17:58:37 2016 +0200
filter hidden functions also in search, tdf#67974 follow-up
Change-Id: Iaa23759e01d8f86bfc5c0bbd8b333cd331b7b8cd
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx
index 0968224..0986dc0 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));
+ }
}
}
}
More information about the Libreoffice-commits
mailing list