summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfunc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 6c72f7023..afd20eae3 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -1595,6 +1595,7 @@ void ScViewFunc::DeleteCells( DelCellCmd eCmd, BOOL bRecord )
if ( GetViewData()->GetSimpleArea( aRange ) == SC_MARK_SIMPLE )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ const ScMarkData& rMark = GetViewData()->GetMarkData();
// #i94841# [Collaboration] When deleting rows is rejected, the content is sometimes wrong
if ( pDocSh->IsDocShared() && ( eCmd == DEL_DELROWS || eCmd == DEL_DELCOLS ) )
@@ -1611,13 +1612,13 @@ void ScViewFunc::DeleteCells( DelCellCmd eCmd, BOOL bRecord )
}
while ( nCount > 0 )
{
- pDocSh->GetDocFunc().DeleteCells( aDelRange, eCmd, bRecord, FALSE );
+ pDocSh->GetDocFunc().DeleteCells( aDelRange, &rMark, eCmd, bRecord, FALSE );
--nCount;
}
}
else
{
- pDocSh->GetDocFunc().DeleteCells( aRange, eCmd, bRecord, FALSE );
+ pDocSh->GetDocFunc().DeleteCells( aRange, &rMark, eCmd, bRecord, FALSE );
}
pDocSh->UpdateOle(GetViewData());