Issue 18756 - Crash on insert graphic when graphic is previously selected
Summary: Crash on insert graphic when graphic is previously selected
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: jack.warchold
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-28 00:32 UTC by Unknown
Modified: 2004-02-10 13:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample code to reproduce problem (2.66 KB, text/plain)
2003-08-28 00:33 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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