office-gobmx/sw/source/uibase/shells
Daniel Arato (NISZ) 0cd000bb83 tdf#141613 sw: avoid possible crash when undoing header creation
Move the ClearRedo() call to the very end of the undo process in order to avoid heap use after free.

We still need to call ClearRedo() because there's no mechanism in place to Redo a header/footer change.

Regression from commit 65e52cb61d
"tdf#141613 sw: fix crash at header/footer undo".

Change-Id: Ibd4604379c9791e85aef3d4dc6c29c9e3ecd5a28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115275
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-05-10 15:41:28 +02:00
..
annotsh.cxx
basesh.cxx
beziersh.cxx
drawdlg.cxx
drawsh.cxx
drformsh.cxx
drwbassh.cxx
drwtxtex.cxx
drwtxtsh.cxx
frmsh.cxx
grfsh.cxx
grfshex.cxx
langhelper.cxx
listsh.cxx
mediash.cxx
navsh.cxx
olesh.cxx
slotadd.cxx
tabsh.cxx
textdrw.cxx
textfld.cxx
textglos.cxx
textidx.cxx
textsh.cxx
textsh1.cxx
textsh2.cxx
txtattr.cxx
txtcrsr.cxx
txtnum.cxx