summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorDaniel Arato (NISZ) <arato.daniel@nisz.hu>2021-04-26 15:04:17 +0200
committerLászló Németh <nemeth@numbertext.org>2021-05-04 15:38:21 +0200
commit65e52cb61d74b0c71b45b63b2da131bc6b621104 (patch)
tree5bed16832369fe3d4c41c865a24db09b95bf2409 /ucb/source
parent7f0b5f8eb234d2e1cc40055b275799df503ea736 (diff)
tdf#141613 sw: fix crash at header/footer undo
Undoing the creation of a header/footer used to leave their corresponding document nodes intact, causing the node index of a previous undo entry to point to the wrong node. We now force the destruction of the header/footer nodes manually. We also cut the redo chain which loses the redo history, but solves another crash for now (when redoing the creation of the header). The proper solution would be to create a new SwUndo* derived class from scratch to represent the creation of a new header/footer section in the document. Regression from commit 8d8486f43c1a8a51157bfc3e0b87090b05a9229e (tdf#46561 sw: fix lost undo stack setting header/footer) Change-Id: I97188aa8ded802bc6b6fa88ddd83a95c40de8bc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114667 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'ucb/source')
0 files changed, 0 insertions, 0 deletions