diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-05-23 18:23:31 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-06-01 20:24:17 +0200 |
commit | e5a4746378202f8b599de11632b7c8772b735ea2 (patch) | |
tree | 190597f7697b89723badc747ff7a94089ab93960 | |
parent | df67a9ae9c1e9f3e21b1674deb4036f61eced05c (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
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 2 |
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; |