summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-07-27 10:49:41 +0100
committerNoel Power <noel.power@novell.com>2011-07-27 10:49:41 +0100
commit03f091b6c795cd98b3d55fea6b343162b1158318 (patch)
tree3756cdcddaf70fce56763c8fe06ba2efdad42765 /sc
parent9b1d7b844820d4f53973ee5757bcfaa2a5be7321 (diff)
Revert "WaE: nEndTab unused"
This reverts commit 7cdeb6d8c8e5ca8a6d3a654f4a973c12fd2886ac.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/document.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 8efe3fe8b6ca..8f6f728ad9f0 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);