summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-02 08:58:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-02 11:39:34 +0100
commit3f2c6a02df51f5d548bb1100275860be5196b766 (patch)
tree672e1ae18fb10bf03dece2ac6d0e1b56d4172b49 /formula
parent2a2d62993ec4ac3d4332b40f28ac40421321f74e (diff)
coverity#1309048 Unchecked return value
Change-Id: Ia01a78ff8ec2f4fba49d184e05b5785e59677e9e
Diffstat (limited to 'formula')
-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 4827f9d7e092..8581e8fe8d73 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -709,8 +709,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);