From 308b7a287d0962ad593c9bac8e5b8b474cc36216 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 19 Oct 2011 00:31:51 +0200 Subject: by one error in ScFormulaCell::UpdateDeleteTab (fdo#41868) --- sc/source/core/data/cell2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index afbba01096e6..c2200622a53b 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -1185,7 +1185,7 @@ void ScFormulaCell::UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets) bool ScFormulaCell::UpdateDeleteTab(SCTAB nTable, bool bIsMove, SCTAB nSheets) { bool bRefChanged = false; - bool bPosChanged = ( aPos.Tab() > nTable + nSheets ? true : false ); + bool bPosChanged = ( aPos.Tab() >= nTable + nSheets ? true : false ); pCode->Reset(); if( pCode->GetNextReferenceRPN() && !pDocument->IsClipOrUndo() ) { -- cgit