To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=90705
                 Issue #|90705
                 Summary|Deleting Draw layer does not work from IDE
               Component|framework
                 Version|OOo 2.4.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|scripting
             Assigned to|ab
             Reported by|bmarcelly





------- Additional comments from [EMAIL PROTECTED] Fri Jun 13 16:43:51 +0000 
2008 -------
This macro deletes layer "myLayer" in a Draw document:

Dim allLayers As Object, thisLayer As Object
allLayers = ThisComponent.LayerManager
thisLayer = allLayers.getByName("myLayer")
allLayers.remove(thisLayer)

Well, it works if the macro is run from the document window.
It does NOT work if run from the IDE !
Found on 2.4.1 and 2.3.1. No such problem on 1.1.5.
Perhaps this strange bug has more consequences, it should be investigated.
Next attachment is a simple Draw document with the macro.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to