diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 12:57:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 17:17:35 +0100 |
commit | 6db71f70a3b200d4074f6cda8ce445e9861d3296 (patch) | |
tree | 533079dfe5e83a2e5034ae8c1bb51ab7e94bcdd9 /sw | |
parent | ce69ab8d61975d5d49142469115798b5b3688a63 (diff) |
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@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/tabsh.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |