summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-03-01 21:00:24 +0100
committerJan Holesovsky <kendy@collabora.com>2018-03-02 09:27:02 +0100
commitbba8e5aa6d1968e5279b3fe368c0f81145513d04 (patch)
tree6719d0ce1a471ac3e2963ca4e2b9ce5ac2f28009 /sw
parent477d2ba662cbd716588519419eece2b4f06d8610 (diff)
tdf#116070: Use a valid PaM when confirming the dialog.
Change-Id: I8d45e709e6414814b3cf04bbd09588ab4e096e8c Reviewed-on: https://gerrit.libreoffice.org/50598 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/textsh1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index e5d96d77e795..1f97aa356969 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1080,7 +1080,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
std::shared_ptr<SfxRequest> pRequest(new SfxRequest(rReq));
rReq.Ignore(); // the 'old' request is not relevant any more
- pDlg->StartExecuteAsync([pDlg, &rWrtSh, pRequest, nDefDist, pPaM](sal_Int32 nResult){
+ pDlg->StartExecuteAsync([pDlg, &rWrtSh, pRequest, nDefDist](sal_Int32 nResult){
if (nResult == RET_OK)
{
// Apply defaults if necessary.
@@ -1110,7 +1110,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
pSet->Put(SfxStringItem(FN_DROP_CHAR_STYLE_NAME, sCharStyleName));
}
- sw_ParagraphDialogResult(pSet, rWrtSh, *pRequest, pPaM);
+ sw_ParagraphDialogResult(pSet, rWrtSh, *pRequest, rWrtSh.GetCursor());
}
});
}