Apache OpenOffice (AOO) Bugzilla – Issue 90969
Crashed when insert a slide under outline view
Last modified: 2008-07-11 08:50:01 UTC
1. Start a presentation. 2. Switch to Outline view,type Enter to create a slide. 3. Push the Undo button and then insert a new slide. The presentation crashed.
Reproducible. Reassigned.
I can reproduce this crash when in step 3 I use the context menu of the slide sorter to insert the new slide.
Yes,you are right.That will make it crash too.
The crash is caused by the undo managers of the document and the outline view not being synchronized. When a new slide is inserted via the slide sorter then the redo actions of the undo manager of the document are deleted but not those of the undo manager of the outline view. Fixed by telling the sd::UndoManager of the document about the undo manager of the outline view and have the former call ClearRedo() at the later whenever a new undo action is added. Only in the case that eventually leads to the crash there seem to be any remaining redo actions that need to be deleted. Modified files: sd/inc/undo/undomanager.hxx rev. 1.4.56.1 sd/source/core/undo/undomanager.cxx rev. 1.5.56.1
Forgot to check in the part in the OutlineView where the two undo managers are actually linked. Modified file is /sd/source/ui/view/outlview.cxx rev. 1.50.18.1
this issue is ready to be verified
Verified in CWS.
*** Issue 91527 has been marked as a duplicate of this issue. ***
Tested in master DEV300_m24. Closed.