Apache OpenOffice (AOO) Bugzilla – Issue 88094
smoketest fails during cut & paste in impress
Last modified: 2008-04-29 17:29:46 UTC
The test of cut and paste mostly fails in impress and draw. Unfortunaly the problem doesn't occur always. I figured out, that after creating a new drawing object, this object will not selected. So the cut fails. I use the following api functions to select the object in starbasic: oView = oDoc.getCurrentController oView.Select(oRect) oDoc is the current impress document and oRect the created drawing object.
cl->af: the basic script creates a new document, then adds a shape and then calls oView = oDoc.getCurrentController oView.Select(oRect) The Select fails in DrawController::select because mxSubController is empty. This will be set later.
The problem is caused by the asynchronous startup of the drawing framework. When the view shell is created the view in the center pane is requested by not yet created. The missing sub-controller that leads to the failing smoketest is created when this center view is created. However, the processing of the drawing framework is done via PostUserEvent: asynchronously. The fix consists of explicitly calling ChangeRequestQueueProcessor::ProcessOneEvent() from withing ViewShellBase::LateInit() until the center view has been created. Check in of the modified files is pending.
All files are checked in.
close issue.