sc/source/core/data/document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 32dc82b9d456ed92ba946611239349ab0e424e2a Author: David Tardon <dtar...@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 ) _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits