Apache OpenOffice (AOO) Bugzilla – Issue 41969
gpf when deleting slides
Last modified: 2005-02-03 18:57:12 UTC
Load the bugdoc, there I often crash if I am deleting four pages via slide sorter. Four times I deleted the page 2 separately. If I was not crashing at this point, I often crash if selecting objects from the slide. I got following stack: sd680mi.dll!sd::slidesorter::model::PageDescriptor::RemoveFocus() C++ sd680mi.dll!sd::slidesorter::controller::FocusManager::HideFocusIndicator() + 0xe sd680mi.dll!sd::slidesorter::controller::FocusManager::HideFocus() + 0x14 sd680mi.dll!sd::slidesorter::controller::FocusManager::FocusHider::FocusHider() sd680mi.dll!sd::slidesorter::controller::FocusManager::FocusPage() + 0x1a sd680mi.dll!sd::slidesorter::controller::SelectionFunction::ProcessMouseEvent() + sd680mi.dll!sd::slidesorter::controller::SelectionFunction::MouseButtonDown() + sd680mi.dll!sd::ViewShell::MouseButtonDown() + 0x64 C++ sd680mi.dll!sd::Window::MouseButtonDown() + 0x1b C++
Created attachment 22156 [details] test document
Probably the sd::slidesorter::controller::FocusManager class does not reset the currently focused page when it is deleted. It tries to access it to remove the focus indicator after it is deleted and crashes.
Duplicate, see below.
This crash has been fixed for issue 39639 (see second comment of January 13th). The sd::slidesorter::controller::FocusManager::HideFocusIndicator() method did access the member pointing to the focused page without checking that it did not hold the NULL pointer (which it did in the situation described above.) Adding the simple test fixed the crash. *** This issue has been marked as a duplicate of 39639 ***
closed