Apache OpenOffice (AOO) Bugzilla – Issue 15039
"create document" event: sample macro code executed (partially) twice
Last modified: 2003-07-15 15:52:28 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
Fixed in RC build
.
verified in RC1
closing