office-gobmx/sd/source/core
Justin Luth 0a9da9e43c tdf#161741 tdf#161705 undo: delay ClearRedo until Undo finishes
I know NOTHING about the intricacies of Undo/Redo.
However, this is my feeble attempt to add some sanity to it.
It should not be the responsibility of the caller
to know when they are allowed to call ClearRedo.

This patch reverts commit 0cd000bb83
author  Daniel Arato (NISZ) on Mon May 10 15:41:28 2021 +0200
    tdf#141613 sw: avoid possible crash when undoing header creation
which was not a sufficient hack.

I hope this patch lays a better framework
to handle future similar issues.

vvv NAIVE OPTIMIST ALERT vvv

mbDoing was added with
commit 9cb53122e9
Author: Frank Schoenheit on Fri Oct 22 15:00:39 2010 +0200
    undoapi: more I/SfxUndoManager changes
    in preparation of new Undo API features

and has been untouched since then AFAICS,
and there was never any mechanism to change mbDoing.
In other words, it has been sitting there doing NOTHING.

So, I am taking it over and using it how I imagine it was intended,
and how it is documented.

Change-Id: I7aa355cc6458ac8ba34ddb9ee73fc850dcbca702
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170793
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-08-16 09:03:26 +02:00
..
annotations
undo
anminfo.cxx
cusshow.cxx
CustomAnimationCloner.cxx
CustomAnimationEffect.cxx
CustomAnimationPreset.cxx
drawdoc.cxx
drawdoc2.cxx
drawdoc3.cxx
drawdoc4.cxx
drawdoc_animations.cxx
EffectMigration.cxx
PageListWatcher.cxx
PageListWatcher.hxx
pglink.cxx
sdpage.cxx
sdpage2.cxx
sdpage_animations.cxx
shapelist.cxx
stlfamily.cxx
stlpool.cxx
stlsheet.cxx
ThemeColorChanger.cxx
TransitionPreset.cxx
typemap.cxx
undoanim.cxx