office-gobmx/sw/source/uibase
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
..
app ref-count SfxItemPool 2021-05-08 17:36:54 +02:00
chrdlg
config loplugin:constmethod 2021-05-05 18:50:51 +02:00
dbui throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
dialog
dochdl
docvw tdf#116384 only drag hyperlink if user's not currently setting the selection 2021-04-28 20:47:36 +02:00
envelp
fldui
frmdlg
globdoc
inc throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
index
lingu
misc
ribbar throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
shells tdf#141613 sw: avoid possible crash when undoing header creation 2021-05-10 15:41:28 +02:00
sidebar loplugin:unnecessaryparen small improvement 2021-05-03 14:03:54 +02:00
table
uitest
uiview loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
uno throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
utlui tdf#140969 Select in Navigator all document selected drawing objects 2021-05-05 08:00:27 +02:00
web
wrtsh