[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - formula/source
Katarina Behrens (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jun 1 18:24:50 UTC 2019
formula/source/ui/dlg/formula.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e5a4746378202f8b599de11632b7c8772b735ea2
Author: Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Thu May 23 18:23:31 2019 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sat Jun 1 20:24:17 2019 +0200
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 at redhat.com>
(cherry picked from commit ad2acdfa36db00678f44f5cd69d687183f02a0bd)
Reviewed-on: https://gerrit.libreoffice.org/73295
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;
More information about the Libreoffice-commits
mailing list