summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-03 15:02:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-03 15:12:13 +0100
commit5c578d4f9764890644bf88270273d6d5703e8225 (patch)
tree7c354c87aab8453a73922e826beaa1f8cab61097
parentbb870b7e8c009b3379750b990eaff142cec183b8 (diff)
coverity#1309048 Unchecked return value
Change-Id: If005f622bc76445f3a6becb26280abe40ee77e26
-rw-r--r--formula/source/ui/dlg/formula.cxx3
1 files changed, 1 insertions, 2 deletions
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);