Apache OpenOffice (AOO) Bugzilla – Issue 97384
Deleting characters and insert a Writer file under Record Changes mode 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 Create a new Writer document and type some characters 2 Edit - Changes - Record, delete the characters you just typed 3 Insert - File, 'Insert' dialog opens, select a *.odt file and hit 'Insert' 4 Click 'Undo' on Standard Toolbar about 3 or more times Result OOo crashes Expectation Undo works well Regards Li Meiying
MRU->AMA: it looks, that the Undo buffer is heavily confused by this row of action in "Track changes" mode. After inserting the file, the Undo-Buffer (look Undo-controller) shows many empty entries.
Meiying->MRU: Exactly, I've noticed the badly confused Undo buffer, but I can't confirm it. Indeed, there are one or more empty entries which should do some operations, but they are not. I guess this issue occurs due to these empty entries
Created attachment 64331 [details] patch
Please have a check to this patch,thanks in advance.
hi majun51, investigating a bit, it looks like the po->Read() call moves the redline, and the code in SwReader::Read() does not expect that... attached patch looks good to me. i'll see that it gets into 3.3 version. thanks for the patch!
fixed in CWS sw33bf01 (patch applied)
please verify
Verified fix in CWS sw33bf01.
Checked fix in DEV300m68.