Kaydet (Commit) ad2acdfa authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Eike Rathke

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: 's avatarEike Rathke <erack@redhat.com>
üst 73751b82
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment