[Libreoffice-commits] .: 2 commits - sc/source

Noel Power noelp at kemper.freedesktop.org
Wed Jul 27 02:52:22 PDT 2011


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

New commits:
commit e9abbfb34d0b57127688fc0135b463cd3ecaaf2d
Author: Noel Power <noel.power at novell.com>
Date:   Wed Jul 27 10:51:14 2011 +0100

    fix wae ( because wrong loop counter variable used )

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 62e48c5..0c229b9 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -1896,7 +1896,7 @@ void ScDocument::CopyToClip(const ScClipParam& rClipParam,
 
     CopyRangeNamesToClip(pClipDoc, aClipRange, pMarks, bAllTabs);
 
-    for ( ; i < nTab; ++i)
+    for ( ; i < nEndTab; ++i)
     {
         if (!maTabs[i] || i >= static_cast<SCTAB>(pClipDoc->maTabs.size()) || !pClipDoc->maTabs[i])
             continue;
commit e4a250ea29d9962f01af56680db4658f07c1b852
Author: Noel Power <noel.power at novell.com>
Date:   Wed Jul 27 10:49:41 2011 +0100

    Revert "WaE: nEndTab unused"
    
    This reverts commit 7cdeb6d8c8e5ca8a6d3a654f4a973c12fd2886ac.

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 2bcab46..62e48c5 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -1883,11 +1883,13 @@ void ScDocument::CopyToClip(const ScClipParam& rClipParam,
     ScRange aClipRange = rClipParam.getWholeRange();
     SCTAB nTab = aClipRange.aStart.Tab();
     SCTAB i = 0;
+    SCTAB nEndTab =  static_cast<SCTAB>(maTabs.size());
 
     if ( bUseRangeForVBA )
     {
         pClipDoc->ResetClip( this, nTab );
         i = nTab;
+        nEndTab = nTab;
     }
     else
         pClipDoc->ResetClip(this, pMarks);


More information about the Libreoffice-commits mailing list