summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfunc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-28 13:08:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-29 14:22:48 +0100
commit0ef5c47547bec6319b853326603f3b807407fe78 (patch)
treeced33b9ae621fa1cd807f8647a5149eed8bc743b /sc/source/ui/view/viewfunc.cxx
parent07bde58988705ca45a619eb7a4e670a5d951abf6 (diff)
sc: rowcol: tdf#50916 convert core/tool
Change-Id: I0fe5a7ef4a79d0832802945ce1b9da4752f1d5fc Reviewed-on: https://gerrit.libreoffice.org/81598 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r--sc/source/ui/view/viewfunc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 5bd55068f04f..a2218c8ddcbf 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -1503,7 +1503,7 @@ void ScViewFunc::OnLOKInsertDeleteColumn(SCCOL nStartCol, long nOffset)
aMultiMark.MarkToMulti();
if (aMultiMark.IsMultiMarked())
{
- aMultiMark.ShiftCols(nStartCol, nOffset);
+ aMultiMark.ShiftCols(pTabViewShell->GetViewData().GetDocument(), nStartCol, nOffset);
pTabViewShell->SetMarkData(aMultiMark);
}
}
@@ -1558,7 +1558,7 @@ void ScViewFunc::OnLOKInsertDeleteRow(SCROW nStartRow, long nOffset)
aMultiMark.MarkToMulti();
if (aMultiMark.IsMultiMarked())
{
- aMultiMark.ShiftRows(nStartRow, nOffset);
+ aMultiMark.ShiftRows(pTabViewShell->GetViewData().GetDocument(), nStartRow, nOffset);
pTabViewShell->SetMarkData(aMultiMark);
}
}