[Libreoffice-commits] .: sc/source
David Tardon
dtardon at kemper.freedesktop.org
Thu Mar 15 01:45:37 PDT 2012
sc/source/core/data/document.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 32dc82b9d456ed92ba946611239349ab0e424e2a
Author: David Tardon <dtardon at redhat.com>
Date: Thu Mar 15 09:43:26 2012 +0100
fdo#47311 don't crash when pasting into more than 1 sheet
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 2a5c751..60ba818 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2277,7 +2277,7 @@ void ScDocument::CopyBlockFromClip( SCCOL nCol1, SCROW nRow1,
while ( i + nFollow < nTabEnd
&& rMark.GetTableSelect( i + nFollow + 1 )
&& nClipTab + nFollow < MAXTAB
- && rClipTabs[nClipTab + nFollow + 1] )
+ && rClipTabs[(nClipTab + nFollow + 1) % static_cast<SCTAB>(rClipTabs.size())] )
++nFollow;
if ( pCBFCP->pClipDoc->GetClipParam().mbCutMode )
More information about the Libreoffice-commits
mailing list