To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96245
                 Issue #|96245
                 Summary|Openoffice.org crashes when pictures are removed from 
                        |a Calc document with a macro.
               Component|scripting
                 Version|OOo 2.4.1
                Platform|PC
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|tvataire





------- Additional comments from [EMAIL PROTECTED] Sun Nov 16 00:53:07 +0000 
2008 -------
When I use the delete() method of a "DrawPage" object in a Calc document,
pictures of this document are  correctly removed.

But if just after I add a new picture in this document through the user
interface (Gallery or "Insertion" menu) then I run the macro a new time, OOo
crashes.


Here is the code that I use :

sub test()

   dim dPage as object
   
   dPage = thisComponent.sheets.getByIndex(0).drawPage

   do while(dPage.hasElements())
      dPage.remove(dPage.getByIndex(0))
   loop

end sub 


I've experienced the problem with version 

- 2.4.1 from Unbuntu repository
- 2.4.1 from mainstream under Windows
- 3.0 from mainstream under Ubuntu and Windows.

---------------------------------------------------------------------
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