diff options
author | Eike Rathke <erack@redhat.com> | 2014-07-15 17:27:16 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-07-15 17:31:25 +0200 |
commit | b409aaa7d65151106236058d3c478bd7f87dd296 (patch) | |
tree | 02b53c6411ed39ee7afa3c1b3d95d1b43d0370f6 | |
parent | 9d929e5682b2dd70c6ede90d117fa3f24fb01f86 (diff) |
CID#703984 Unchecked return value (CHECKED_RETURN)
Change-Id: I5b0c633e25326272aed3bae0bf0847839a45d723
-rw-r--r-- | sc/source/core/tool/chgtrack.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx index a18d0d387be8..db032e19487b 100644 --- a/sc/source/core/tool/chgtrack.cxx +++ b/sc/source/core/tool/chgtrack.cxx @@ -2973,8 +2973,8 @@ void ScChangeTrack::Dependencies( ScChangeAction* pAct ) if ( ScChangeActionContent::GetContentCellType(rCell) == SC_CACCT_MATREF ) { ScAddress aOrg; - rCell.mpFormula->GetMatrixOrigin(aOrg); - ScChangeActionContent* pContent = SearchContentAt( aOrg, pAct ); + bool bOrgFound = rCell.mpFormula->GetMatrixOrigin(aOrg); + ScChangeActionContent* pContent = (bOrgFound ? SearchContentAt( aOrg, pAct ) : NULL); if ( pContent && pContent->IsMatrixOrigin() ) { AddDependentWithNotify( pContent, pAct ); |