summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2011-02-23 19:24:58 +0100
committerNiklas Nebel <nn@openoffice.org>2011-02-23 19:24:58 +0100
commit74d51c1c542ebbe2312d90ffb60f8f51b2de81a9 (patch)
tree9cfb8960cdde44edd692ab4deaca2b900b646b7c /sc/source/ui/docshell/docfunc.cxx
parent9830a3b8ed564471f76b0502a8a88a74952582f4 (diff)
calc66: use correct sheet for clip param also in MoveBlock, PasteDataFormat (avoid assertions)
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 152f9f206cbe..62b256ba620c 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2291,7 +2291,7 @@ sal_Bool ScDocFunc::MoveBlock( const ScRange& rSource, const ScAddress& rDestPos
}
ScDrawLayer::SetGlobalDrawPersist(aDragShellRef);
- ScClipParam aClipParam(ScRange(nStartCol, nStartRow, 0, nEndCol, nEndRow, 0), bCut);
+ ScClipParam aClipParam(ScRange(nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nStartTab), bCut);
pDoc->CopyToClip(aClipParam, pClipDoc, &aSourceMark, false, bScenariosAdded, true);
ScDrawLayer::SetGlobalDrawPersist(NULL);