Issue 95626

Summary: Crash pasting two or more graphics from Windows Explorer
Product: Writer Reporter: wahuwa <erwin.pfeifer>
Component: editingAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: frank.meies, issues
Version: OOO300m9Keywords: regression
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description wahuwa 2008-10-30 09:15:16 UTC
Copying two or more selected images in Windows Explorer and pasting into 
Writer causes a crash and Writer is not able to rebuild the document.
Comment 1 pesala 2008-10-30 09:47:04 UTC
Confirmed on Windows XP Home and OpenOffice Writer 3.0 
Comment 2 opavlos 2008-10-30 11:37:30 UTC
Confirmed for me also on Windows XP Professional Version 2002, Service Pack 3
with OpenOffice Writer 3.0.0.
Comment 3 michael.ruess 2008-10-30 14:50:05 UTC
MRU->OD: in Windows Explorer select two or more graphic files, copy to
clipboard, paste into Writer -> crash.
Comment 4 Oliver-Rainer Wittmann 2008-11-12 08:58:49 UTC
Investigation reveals that one of the pasted graphics got the other graphic as
its anchor. This is not allowed. The layout algorithm does not expect such an
anchor and produces a null pointer access.

Defect cause: Not found yet

Proposed solution: Assure that all pasted graphics are anchored at the same
anchor - e.g. the paragraph the cursor is in.

Accepted this issue to fix it for OOo 3.1
Comment 5 Oliver-Rainer Wittmann 2008-12-23 08:57:32 UTC
Investigation reveals that method <SwWrtShell::UnSelectFrm()> no longer
functions due to changes to method <SwRootFrm::GetCrsrOfst(..)>
Comment 6 Oliver-Rainer Wittmann 2008-12-23 12:34:20 UTC
fixed in cws sw31bf03 - changed file:
/sw/source/core/layout/trvlfrm.cxx, rev. 265778

solution:
<SwWrtShell::UnSelectFrm(..)> does not work, because
<SwRootFrm::GetCrsrOfst(..)> does not change the cursor for a search
coordination, which is beyond the root frame's area. Thus, introduced special
handling for this situation.
Comment 7 Oliver-Rainer Wittmann 2009-01-05 14:33:08 UTC
OD->MRU: Checked in internal installation set of cws sw31bf03 - please verify.
Comment 8 michael.ruess 2009-01-07 11:03:57 UTC
Verified fix in CWS sw31bf03.
Comment 9 michael.ruess 2009-02-02 15:06:18 UTC
Checked in DEV300m41.
Comment 10 Oliver-Rainer Wittmann 2009-03-23 08:14:08 UTC
*** Issue 100465 has been marked as a duplicate of this issue. ***