Issue 41969 - gpf when deleting slides
Summary: gpf when deleting slides
Status: CLOSED DUPLICATE of issue 39639
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: 680m74
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: sven.jacobi
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 13:10 UTC by sven.jacobi
Modified: 2005-02-03 18:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test document (50.00 KB, application/vnd.ms-powerpoint)
2005-02-03 13:12 UTC, sven.jacobi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sven.jacobi 2005-02-03 13:10:22 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++
Comment 1 sven.jacobi 2005-02-03 13:12:04 UTC
Created attachment 22156 [details]
test document
Comment 2 groucho266 2005-02-03 16:30:12 UTC
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.
Comment 3 groucho266 2005-02-03 16:38:08 UTC
Duplicate, see below.
Comment 4 groucho266 2005-02-03 16:41:13 UTC
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 ***
Comment 5 sven.jacobi 2005-02-03 18:57:12 UTC
closed