[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Mon Jan 16 05:56:51 PST 2012


 sc/source/ui/docshell/docsh5.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 9b7d7322401da8ce42affb9e6bd408311b383ec4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Jan 15 02:13:39 2012 +0000

    make adjusting formulas possible for TransferTab

diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index d053561..b965d50 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
 


More information about the Libreoffice-commits mailing list