Apache OpenOffice (AOO) Bugzilla – Issue 53237
Assertion and Crash: ImpPageListWatcher::GetSdPage(PK_NOTES):
Last modified: 2010-10-23 15:35:11 UTC
I open a presentation, drag and drop several slides in the sorter, switch to normal view, outline, notes and this comes up: Debug Output --------------------------- Error: ImpPageListWatcher::GetSdPage(PK_NOTES): access out of range From File O:\SRC680\src\sd\source\core\PageListWatcher.cxx at Line 153 Abort ? (Yes=abort / No=ignore / Cancel=core dump) --------------------------- Yes No Cancel --------------------------- Pressing no results in a crash.
.
Created attachment 28686 [details] Test document with notes view in master page mode
With the attached document this crash can be reprodoced like this: 1. Load the document. 2. Switch to slide 3. 3. Switch to the outline view and then to the notes view.
The reason for the crash is the following: in the stored document the master page mode is set for the notes view. Switching from the outline view to the notes view bypasses the code that resets the page mode of the notes view back to the default (regular slides). For some not yet known reason the page number of the current slide set in the slide sorter bar is used to set the current page in the notes view. When this number is higher than the number of notes master pages the crash occurs. For the fix we should do the following: 1. Add a guard to DrawViewShell::SwitchPage() that catches page numbers of not existing pages. 2. Fix the code in ViewTabBar so that when the user switches to the notes view the edit mode is established. 3. Think about not storing the edit mode of any but the currently active view.
Fixed by taking care of points 1 and 2 mentioned above. Affected files: /sd/source/ui/view/ViewTabBar.cxx rev. 1.6.180.1 /sd/source/ui/view/drviews1.cxx rev. 1.57.96.1
Fixed.
Trying to set this issue to fixed a third time.
verified in cws, back to qa re-open issue and reassign to wg@openoffice.org
reassign to wg@openoffice.org
reset resolution to FIXED
Verified in CWS.
Tested in m140. CLosed.
Created attachment 72560