Apache OpenOffice (AOO) Bugzilla – Issue 97570
Insert a file with Object document and Undo twice crashes Writer
Last modified: 2013-08-07 14:44:07 UTC
Can reproduce it with DEV300m37 on WinXP and Fedora How to reproduce it 1 Open a new Writer document 2 Insert - Object - OLE Object, OLE Object appears, OK 3 File - Save As, save this doucment as test1.doc and close it 4 Open another new Writer document, Table - Insert - Table, OK 5 Set cursor below the inserted table, Insert - File, select test1.doc and click 'Insert' button 6 Undo firstly 7 Undo secondly Result After step 6, inserted file changes a little, but the nested Object still there. After step 7, OOo crashes Expectation OOo works well Regards Li Meiying
It is essential, that the document containing the OLE object is saved in MS Word .doc format. Then it will lead to the crash in Undo as described above.
*** Issue 97574 has been marked as a duplicate of this issue. ***
Michael, please take over
retarget
the problem is caused if the inserted file contains a frame that is anchored AT character. it is not necessary that the file is in WW8 format; because WW8 cannot store anchor type at paragraph, the frame is stored with anchor AT character on WW8 export. in SwReader::Read there is some special code to create Undo objects for inserted frames with anchors at page or at paragraph. there is no special code for frames AT character, so these survive the Undo of the file insertion. if this happens, the node offsets in previous Undo objects are wrong, and thus further Undo steps likely crash.
fixed in CWS sw33bf01. http://hg.services.openoffice.org/hg/cws/sw33bf01/rev/4bc8a0d61c14
please verify
Verified fix in CWS sw33bf01.
Checked fix in DEV300m68.