office-gobmx/sw/source
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
..
core tdf#141613 sw: avoid possible crash when undoing header creation 2021-05-10 15:41:28 +02:00
filter tdf#69635 DOCX: export hidden (shared) headers/footers 2021-05-04 19:14:22 +02:00
ui use Label::set_label_type to designate a label as a warning/error 2021-05-06 12:51:23 +02:00
uibase tdf#141613 sw: avoid possible crash when undoing header creation 2021-05-10 15:41:28 +02:00