[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 16:18:21 UTC 2021
sw/source/uibase/shells/tabsh.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6db71f70a3b200d4074f6cda8ce445e9861d3296
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 12 12:57:57 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 12 17:17:35 2021 +0100
tdf#140977 drop possible table-cursor before setting the new one
Change-Id: I3d278af77886af3413b4a15464c8a52caa9a8e02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112391
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm at redhat.com>
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 34d98f61edd9..036274546d04 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -600,6 +600,9 @@ void SwTableShell::Execute(SfxRequest &rReq)
pDlg->StartExecuteAsync([pDlg, pRequest, pTableRep, &rBindings, &rSh, vCursors](sal_Int32 nResult){
if (RET_OK == nResult)
{
+ if (rSh.IsTableMode()) // tdf#140977 drop possible table-cursor before setting the new one
+ rSh.TableCursorToCursor();
+
rSh.SetSelection(*vCursors->front()); // tdf#135636 set the table selected at dialog launch as current selection
const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
More information about the Libreoffice-commits
mailing list