[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Tue Oct 18 15:35:28 PDT 2011


 sc/source/core/data/cell2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 308b7a287d0962ad593c9bac8e5b8b474cc36216
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed Oct 19 00:31:51 2011 +0200

    by one error in ScFormulaCell::UpdateDeleteTab (fdo#41868)

diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index afbba01..c220062 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() )
     {


More information about the Libreoffice-commits mailing list