summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-05-23 18:23:31 +0200
committerEike Rathke <erack@redhat.com>2019-06-01 20:24:17 +0200
commite5a4746378202f8b599de11632b7c8772b735ea2 (patch)
tree190597f7697b89723badc747ff7a94089ab93960 /formula
parentdf67a9ae9c1e9f3e21b1674deb4036f61eced05c (diff)
tdf#124279: consider also functions with no arguments
such as PI() or TRUE() Change-Id: I1243e6d6da7ac884d93d5d46058d94eb35f848ab Reviewed-on: https://gerrit.libreoffice.org/73242 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit ad2acdfa36db00678f44f5cd69d687183f02a0bd) Reviewed-on: https://gerrit.libreoffice.org/73295
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/formula.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index a8e0c02f1f8f..72cb0987479f 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -657,7 +657,7 @@ void FormulaDlg_Impl::MakeTree( StructPage* _pTree, SvTreeListEntry* pParent, co
const table::CellAddress aRefPos(m_pHelper->getReferencePosition());
const OUString aResult = m_pHelper->getFormulaParser()->printFormula( aArgs, aRefPos);
- if ( nParas > 0 )
+ if ( nParas > 0 || (nParas == 0 && _pToken->IsFunction()) )
{
SvTreeListEntry* pEntry;