Apache OpenOffice (AOO) Bugzilla – Issue 48263
Crash when switching between write protect and edit file
Last modified: 2005-05-10 13:47:51 UTC
open a new impress and save it. Click on the edit file button 4 times: task pane is empty. Now click the view button of the taskpane: Offie crashes.
On some occasions when the document is switched from read-only to read-write mode the ViewShellBase is replaced by another one. In other occasions it is not. One of these leads to the crash because the PaneManager is not informed that the right pane has been made visible and therefore does not create a TaskPaneViewShell for it.
Fixed by making PaneDockingWindow listen for VCLEVENT_WINDOW_SHOW and VCLEVENT_WINDOW_HIDE events and calling PaneManager::RequestWindowVisibilityChange() as a result. In PaneManager I had to guard the ViewFrame::SetChildWindow() calls with ViewFrame::KnowsChildWindow() so that the view frame does not complain about the attempt to hide an unknown child window (the right pane in read-only mode is not only hidden, it does not exist). Affected files: sd/source/ui/dlg/PaneDockingWindow.cxx rev. 1.9.44.1 sd/source/ui/inc/PaneDockingWindow.hxx rev. 1.6.110.1 sd/source/ui/view/PaneManager.cxx rev. 1.18.38.1
Back to QA for verification
Setting to fixed.
Reassigning issue to me for testing. re-open issue and reassign to wg@openoffice.org
reassign to wg@openoffice.org
reset resolution to FIXED
Verified in CWS.
Tested in master m102. Closed.