[Libreoffice-commits] .: sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Jan 11 13:11:09 PST 2011


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

New commits:
commit 6380c35e41bec6681d85611eacb1eccce7aa371f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 11 21:10:59 2011 +0000

    best to initialize nTab2 from nTab1

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index f88d332..6af58e7 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -6705,7 +6705,7 @@ void ScInterpreter::ScOffset()
                 nCol1 = (SCCOL)((long)nCol1+nColPlus);      // ! nCol1 wird veraendert!
                 nRow1 = (SCROW)((long)nRow1+nRowPlus);
                 nCol2 = (SCCOL)((long)nCol1+nColNew-1);
-                nRow2 = (SCROW)((long)nRow1+nRowNew-1);
+                nTab2 = nTab1;
                 PushIllegalArgument();
                 if (!ValidCol(nCol1) || !ValidRow(nRow1) ||
                     !ValidCol(nCol2) || !ValidRow(nRow2))


More information about the Libreoffice-commits mailing list