Apache OpenOffice (AOO) Bugzilla – Issue 1108
Writer 6.0 format bug with change monitoring
Last modified: 2003-12-06 14:52:34 UTC
I have a file, that when I save it as a Writer 6.0 file, copies a small piece of the text to random locations within the file, overwriting what might have been there before. It's like a transposable element in DNA, jumping around stomping on bits of my file. I have record changes on. The bit that hops around is the the section beginning: 'the revolution is here'. Whenever I make a change and save it, that section copies itself to a new location.
Created attachment 318 [details] Writer 6.0 file
Reproducable in both 633 and 636. The text gets moved during export of the document. I marked it as priority 2 bug because the content gets garbled. Something in the document seems to confuse the SwXTextPortionEnumeration. During generation of the SwXTextPortionEnumeration for the 3rd paragraph (where the text magically shows up in) an assertion "wrong move index" is thrown. Also, in the second paragraph a redline-end portion is generated without a start portion. dvo->os: That's your job, I think.
.
The redline array was (sometimes) filled in the wrong order. The fix is in sw/source/core/unocore/unoportenum.cxx 1.15 The remaining problem is the missing beginning of the second heading before "Introduction"
OK, when importing deletion redlines only plain paragraphs (text:p) elements were being accepted. This was being too strict, as it would also reject e.g. lists, where paragraphs are inside the list element. (xmloff/source/text/XMLChangeElementImportContext.cxx#126 ff) This being fixed, the document now loads and saves fine.
dvo->Jason Stewart: Your document gets loaded and saved fine now. The fix should be in any version labeled 637 or greater. Several change marks in your document appear to be incorrect due to the bug. Sorry about that. :-(
Ermm, I was tricked by the user interface. I want to mark this as fixed and sent it to Eric Savary for verification, but it doesn't let me send the bug to other people once it's fixed. So I'll reopen it and send it to Eric.
dvo->es: Please verify once the version is out.
This bug is fixed, dammit!
Ok in OOo .1.0.2