[Libreoffice-commits] .: sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Jun 15 03:46:01 PDT 2011


 sc/source/core/data/document.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2a1a9e71fa3ec77a582295d1e4dd751c64067b98
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 15 11:45:40 2011 +0100

    crash in undo: related d19d7455

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index b8f1974..1822f00 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -1695,8 +1695,8 @@ void ScDocument::InitUndo( ScDocument* pSrcDoc, SCTAB nTab1, SCTAB nTab2,
         xPoolHelper = pSrcDoc->xPoolHelper;
 
         String aString;
-        if ( nTab1 >= static_cast<SCTAB>(maTabs.size()))
-            maTabs.resize(nTab1 + 1, NULL);
+        if ( nTab2 >= static_cast<SCTAB>(maTabs.size()))
+            maTabs.resize(nTab2 + 1, NULL);
         for (SCTAB nTab = nTab1; nTab <= nTab2; nTab++)
         {
             ScTable* pTable = new ScTable(this, nTab, aString, bColInfo, bRowInfo);


More information about the Libreoffice-commits mailing list