Kaydet (Commit) 32dc82b9 authored tarafından David Tardon's avatar David Tardon

fdo#47311 don't crash when pasting into more than 1 sheet

üst e4fb4497
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment