[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - formula/source

Katarina Behrens (via logerrit) logerrit at kemper.freedesktop.org
Fri May 31 23:01:17 UTC 2019


 formula/source/ui/dlg/formula.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf34e08f8d0d90939fea24d17f94434b0cd66439
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 01:00:35 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/73294
    Tested-by: Eike Rathke <erack at redhat.com>

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;


More information about the Libreoffice-commits mailing list