diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 12:57:57 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-03-12 19:53:27 +0100 |
commit | f71efcdc4c8525bdf93becfc66b57bccd47f88c4 (patch) | |
tree | d4a91d09143c82d143166a4434e5c257a825cdbd | |
parent | e79c637f291d552bfe8f32ccfc23300c67f51fcc (diff) |
tdf#140977 drop possible table-cursor before setting the new one
Change-Id: I3d278af77886af3413b4a15464c8a52caa9a8e02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112310
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-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(); |