From 5c578d4f9764890644bf88270273d6d5703e8225 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 3 Aug 2015 15:02:37 +0100 Subject: coverity#1309048 Unchecked return value Change-Id: If005f622bc76445f3a6becb26280abe40ee77e26 --- formula/source/ui/dlg/formula.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'formula') diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index ad3cbe408b6c..95d112c6b438 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -748,8 +748,7 @@ void FormulaDlg_Impl::MakeTree(IStructHelper* _pTree,SvTreeListEntry* pParent,Fo { OUString aCellResult; OUString aEquals(" = "); - CalcValue( "=" + aResult, aCellResult); - if (aCellResult != aResult) // cell is a formula, print subformula + if (CalcValue( "=" + aResult, aCellResult) && aCellResult != aResult) // cell is a formula, print subformula _pTree->InsertEntry(aResult + aEquals + aCellResult,pParent,STRUCT_END,0,_pToken); else _pTree->InsertEntry(aResult,pParent,STRUCT_END,0,_pToken); -- cgit