Issue 88094 - smoketest fails during cut & paste in impress
Summary: smoketest fails during cut & paste in impress
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P1 (highest) Trivial (vote)
Target Milestone: OOo 3.0
Assignee: groucho266
QA Contact: issues@installation
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-09 13:23 UTC by kurt.zenker
Modified: 2008-04-29 17:29 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kurt.zenker 2008-04-09 13:23:49 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.
Comment 1 clippka 2008-04-09 15:41:54 UTC
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.
Comment 2 groucho266 2008-04-09 17:25:06 UTC
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.
Comment 3 groucho266 2008-04-10 12:42:04 UTC
All files are checked in.
Comment 4 Martin Hollmichel 2008-04-29 17:29:46 UTC
close issue.