[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 12 18:54:04 UTC 2021


 sw/source/uibase/shells/tabsh.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f71efcdc4c8525bdf93becfc66b57bccd47f88c4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 12 12:57:57 2021 +0000
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Fri Mar 12 19:53:27 2021 +0100

    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 at ubuntu.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