summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-04-06 20:36:39 -0400
committerKohei Yoshida <libreoffice@kohei.us>2017-04-07 02:01:12 +0000
commit18234d23200e5cad1d8acbc9ad452d1ee2688169 (patch)
tree30ed3b1d675f87b254ea0b603b35f05e15e7e662 /sc
parentf7b969d8ecfe349a52d523c169c64c9e1a250fa6 (diff)
Make it a bit easier to read.
Change-Id: I1c87d17dc9bf54e968af1cb6a7abc3dc36324bd9 Reviewed-on: https://gerrit.libreoffice.org/36240 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index a412d957b915..dda9430eb37e 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2859,12 +2859,12 @@ bool ScDocFunc::MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
if (bRecord)
{
+ ScRange aUndoRange(nStartCol, nStartRow, nStartTab, nOldEndCol, nOldEndRow, nEndTab);
+ ScAddress aDestPos(nDestCol, nDestRow, nDestTab);
+
rDocShell.GetUndoManager()->AddUndoAction(
- new ScUndoDragDrop( &rDocShell, ScRange(
- nStartCol, nStartRow, nStartTab,
- nOldEndCol, nOldEndRow, nEndTab ),
- ScAddress( nDestCol, nDestRow, nDestTab ),
- bCut, pUndoDoc, bScenariosAdded ) );
+ new ScUndoDragDrop(
+ &rDocShell, aUndoRange, aDestPos, bCut, pUndoDoc, bScenariosAdded));
}
SCCOL nDestPaintEndCol = nDestEndCol;