Issue 15039

Summary: "create document" event: sample macro code executed (partially) twice
Product: General Reporter: Frank Schönheit <frank.schoenheit>
Component: uiAssignee: Frank Schönheit <frank.schoenheit>
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1 Beta2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Frank Schönheit 2003-05-28 22:52:09 UTC
* add the following macro to any global macro library:
  sub setNewDocumentTitle
    MsgBox "entering the method"
    sText = InputBox("Enter the title of the new document:")
    MsgBox "leaving the method"
  end sub
* Tools|Configure|Events
* assign this macro to the "Create Document" event (globally for OpenOffice.org,
not for the document)
* confirm the changes in this dialog with OK
* open a new document
=> - a message box "entering the method" opens
   - while this message box is open, the input box appears
* close the input box with OK
* close the message box with OK
=> the input box appears, again
* close the input box with OK
=> the message box "leaving the method" opens

Seems that part of the macro is executed twice

notes:
- If the input box is removed from the macro, everything is OK
- If the macro is bound to another event, e.g. "close document", it is executed
  twice, too, but this time the _complete_ macro
- If the macro is bound to e.g. an event of a form control, everything is fine
Comment 1 Mathias_Bauer 2003-06-30 13:39:09 UTC
Fixed in RC build
Comment 2 Mathias_Bauer 2003-07-02 13:58:43 UTC
.
Comment 3 Frank Schönheit 2003-07-15 15:45:54 UTC
verified in RC1
Comment 4 Frank Schönheit 2003-07-15 15:48:00 UTC
verified in RC1
Comment 5 Frank Schönheit 2003-07-15 15:52:28 UTC
closing