summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 09ba678edd6f..7e944557856f 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1283,7 +1283,8 @@ void ScViewFunc::MergeCells( bool bApi, bool bDoContents, bool bCenter,
SfxViewShell* pViewShell = GetViewData().GetViewShell();
- weld::DialogController::runAsync(pBox, [=](sal_Int32 nRetVal) {
+ weld::DialogController::runAsync(pBox, [pBox, bDoContents, bEmptyMergedCells, pViewShell,
+ nSlot, bApi, doMerge=std::move(doMerge)](sal_Int32 nRetVal) {
if (nRetVal == RET_OK)
{
bool bRealDoContents = bDoContents;