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 00:57:54 +0200
commitad2acdfa36db00678f44f5cd69d687183f02a0bd (patch)
treeb16c41f0f59ca7fa04b24a2debbf065f5d2c92d6 /formula
parent73751b825daf8245381553d495dc0819fef933ab (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>
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 269b4c301c41..aba185426e5f 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -615,7 +615,7 @@ void FormulaDlg_Impl::MakeTree(StructPage* _pTree, weld::TreeIter* pParent, cons
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()) )
{
std::unique_ptr<weld::TreeIter> xEntry;
weld::TreeIter* pEntry;