diff options
author | Jim Raykowski <raykowj@gmail.com> | 2021-08-07 19:45:04 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-08-08 21:23:49 +0200 |
commit | 18004b707d2cb92ab88923138d72c5ca1b03301c (patch) | |
tree | c6c042c502621a4f02ec8dfb07d67634d46dccea /sd | |
parent | ec867a13baaa43791d8bacf4e8c1b96aadb6aa8a (diff) |
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@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |