[Libreoffice-commits] core.git: sd/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 8 19:24:22 UTC 2021


 sd/source/ui/dlg/sdtreelb.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 18004b707d2cb92ab88923138d72c5ca1b03301c
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Sat Aug 7 19:45:04 2021 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Sun Aug 8 21:23:49 2021 +0200

    tdf#143572 Restore enable undo setting immediatly after object name
    
    is set each time here
    
    This prevents a crash when an object is in text edit mode and a
    different object is selected in the navigator to jump to.
    
    Change-Id: I7c0eaa7770f0e3f23e6a62780f18e0a973019c62
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120170
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 4494cf35419a..f146b30b6a80 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -711,7 +711,9 @@ void SdPageObjsTLV::Select()
                 const bool bUndo = pObject->getSdrModelFromSdrObject().IsUndoEnabled();
                 pObject->getSdrModelFromSdrObject().EnableUndo(false);
                 pObject->SetName(m_xTreeView->get_selected_text(), false);
+                pObject->getSdrModelFromSdrObject().EnableUndo(bUndo);
                 m_aRowActivatedHdl.Call(*m_xTreeView);
+                pObject->getSdrModelFromSdrObject().EnableUndo(false);
                 pObject->SetName(OUString(), false);
                 pObject->getSdrModelFromSdrObject().EnableUndo(bUndo);
             }


More information about the Libreoffice-commits mailing list