Issue 18756

Summary: Crash on insert graphic when graphic is previously selected
Product: Writer Reporter: Unknown <non-migrated>
Component: codeAssignee: jack.warchold
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1 Beta   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Sample code to reproduce problem none

Description Unknown 2003-08-28 00:32:01 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)
Comment 1 Unknown 2003-08-28 00:33:07 UTC
Created attachment 8828 [details]
Sample code to reproduce problem
Comment 2 ooo 2003-09-02 08:19:33 UTC
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.
Comment 3 utomo99 2003-11-11 09:23:40 UTC
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 
Comment 4 jack.warchold 2004-01-16 11:44:55 UTC
reassigned to jw

i will take a look on this issue
Comment 5 jack.warchold 2004-02-10 13:06:56 UTC
closed due the long time of inactivity

Comment 6 jack.warchold 2004-02-10 13:07:47 UTC
wfm -> closed

please feel free to reopen if this error still occurs on your system with the latest 
office release