[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Apr 7 02:01:46 UTC 2017
sc/source/ui/docshell/docfunc.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 18234d23200e5cad1d8acbc9ad452d1ee2688169
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Thu Apr 6 20:36:39 2017 -0400
Make it a bit easier to read.
Change-Id: I1c87d17dc9bf54e968af1cb6a7abc3dc36324bd9
Reviewed-on: https://gerrit.libreoffice.org/36240
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
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;
More information about the Libreoffice-commits
mailing list