Frank Schönheit - Sun Microsystems Germany wrote:
Hi Andrew,

not having an answer to your question, but ...

Assume a draw document with a single shape selected.
I want to delete the single shape.
The code shown below obtains a reference to the selected shape from the current controller (because it is selected).

So, if I have a reference to a shape that is inserted into a draw page, how can I delete it?
I tried oShape.Dispose(), which crashed OOo.
I tried oShape.getParent().Remove(oShape), which crashed OOo.

... for both of the crashes I would like to see issues in IssueZilla, if
possible :)

Ciao
Frank
No Problem. I will enter an issue for both.

http://www.openoffice.org/issues/show_bug.cgi?id=76084

I will also assume that this is how I should remove a graphic.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

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

Reply via email to