diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-15 03:13:39 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-15 04:05:21 +0100 |
commit | 8954e9eb7eeb61b2534897e500d85d24accac294 (patch) | |
tree | 3e7869378c471c7c1fb84328b9b44bf6f89d885d /sc | |
parent | sc test : update importSheet tests (diff) | |
download | core-8954e9eb7eeb61b2534897e500d85d24accac294.tar.gz core-8954e9eb7eeb61b2534897e500d85d24accac294.zip |
make adjusting formulas possible for TransferTab
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index d0535614cdd4..b965d5059cae 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -65,6 +65,7 @@ #include "sc.hrc" #include "waitoff.hxx" #include "sizedev.hxx" +#include "clipparam.hxx" #include <basic/sbstar.hxx> #include <basic/basmgr.hxx> @@ -850,6 +851,12 @@ sal_uLong ScDocShell::TransferTab( ScDocShell& rSrcDocShell, SCTAB nSrcPos, { ScDocument* pSrcDoc = rSrcDocShell.GetDocument(); + // set the transfered area to the copyparam to make adjusting formulas possible + ScClipParam aParam; + ScRange aRange(0, 0, nSrcPos, MAXCOL, MAXROW, nSrcPos); + aParam.maRanges.Append(aRange); + pSrcDoc->SetClipParam(aParam); + sal_uLong nErrVal = aDocument.TransferTab( pSrcDoc, nSrcPos, nDestPos, bInsertNew ); // no insert |