Apache OpenOffice (AOO) Bugzilla – Issue 18756
Crash on insert graphic when graphic is previously selected
Last modified: 2004-02-10 13:07:47 UTC
If I have a graphic selected in writer and I wish to insert a new graphic via the API, then first I need to deselect the currently selected image. To do this I currently use the API to 1. get an XTextViewCursor 2. Query the text view cursor for an XPageCursor 3. Position the XPageCursor to start of first page If I then attempt to use the insertGraphic slot command I get an access violation in OpenOffice, if I add a delay (approx 200msecs) the insertGraphic slot command works fine Attached is some sample code to reproduce problem (Crash is in SwEditShell::GetGrfNms as _getGrfNode returns 0, appears that the graphic has been deselected, but GraphicShell is still present)
Created attachment 8828 [details] Sample code to reproduce problem
Slot execution itself is not really API, just the general concept. The slot execution itself belongs more to the UI shell implementation. => forwarding to the Writer team.
Please try using the latest OpenOffice 1.1 Final , you can download it from www.openoffice.org many bug fixes and enhancements since your version and 1.1 Final . If the problem still happend in 1.1 please report back
reassigned to jw i will take a look on this issue
closed due the long time of inactivity
wfm -> closed please feel free to reopen if this error still occurs on your system with the latest office release