[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 28 10:34:20 UTC 2020
sw/source/uibase/shells/tabsh.cxx | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit 9c61732677d038e32b73fc9fb883aced14c0febf
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 27 20:55:02 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Sep 28 12:33:38 2020 +0200
tdf#135916 just set the target table as selection
don't save and restore the cursor when the format is applied
Change-Id: I320b714193b604cb480a517add4a4a61f5a5128e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103525
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 1fa8f287fbff..23fd983166e3 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -600,7 +600,6 @@ void SwTableShell::Execute(SfxRequest &rReq)
pDlg->StartExecuteAsync([pDlg, pRequest, pTableRep, &rBindings, &rSh, xPaM](sal_Int32 nResult){
if (RET_OK == nResult)
{
- rSh.Push(); // save current cursor on stack
rSh.SetSelection(*xPaM); // tdf#135636 set the table selected at dialog launch as current selection
const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
@@ -610,8 +609,6 @@ void SwTableShell::Execute(SfxRequest &rReq)
pRequest->Done(*pOutSet);
ItemSetToTableParam(*pOutSet, rSh);
-
- rSh.Pop(SwCursorShell::PopMode::DeleteCurrent); // restore cursor from stack
}
rBindings.Update(SID_RULER_BORDERS);
More information about the Libreoffice-commits
mailing list