coverity#1078506 troubling Logically dead code

Change-Id: I9687ab7340e9c9ab45ff4dd27eb53e671492e7b5
This commit is contained in:
Caolán McNamara
2014-03-28 15:18:54 +00:00
parent 47bf12afa0
commit 11676ac765

View File

@@ -2827,7 +2827,6 @@ bool ScFormulaCell::UpdateReferenceOnMove(
bool bValChanged = false;
bool bRefModified = false;
bool bRefSizeChanged = false;
if (bHasRefs)
{
@@ -2877,7 +2876,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
bool bNeedDirty = false;
// NeedDirty for changes except for Copy and Move/Insert without RelNames
if ( bRefModified || bColRowNameCompile ||
(bValChanged && bHasRelName && (bHasRelName || bInDeleteUndo || bRefSizeChanged)) || bOnRefMove)
(bValChanged && bHasRelName ) || bOnRefMove)
bNeedDirty = true;
if (pUndoDoc && (bValChanged || bOnRefMove))