Apache OpenOffice (AOO) Bugzilla – Issue 71596
Saving a document with many objects anchored to character will place all objects at end of paragraph
Last modified: 2013-08-07 14:42:35 UTC
Version : 2.0.3 and 2.0.4 Description : I am working on a document with many small frames(here : 64). I gave you an example of what it should look like, in the attached PDF file. In the saved Open Document, the frames are not anchored to the character, but to the end of the paragraph. This problem does not happen with every paragraph. XML Description : In context.xml, it appears that the <draw:frame> elements are gathered at the end of the <text:p> elements. They should mix with the <text:span> elements. The attached images describe the structure of the XML, in a good case and in a bad case. Workaround : Edit the new document in one go (hoping the system will not crash) and export it to PDF. Obviously not a good workaround for a long document. Attached documents : Bug OpenOffice 1 - Frame - Bad.jpeg : XML structure of bad paragraph. Bug OpenOffice 1 - Frame - Good.jpeg : XML structure of good paragraph. Doc1.doc : The document, with a bad appearance for the frames. Doc1.pdf : The document, as it should look like. This problem is similar in description to bug #70404. But I cannot reproduce bug #70404. Thanks for looking into it. PS : The small preview image of first page of the document in the Windows Explorer looks good, with the frames at the right place. I guess it is generated during the first save. !?!
Created attachment 40606 [details] XML structure of bad paragraph.
Created attachment 40607 [details] XML structure of good paragraph.
Created attachment 40608 [details] XML structure of bad paragraph.
Created attachment 40609 [details] The document, with a bad appearance for the frames.
Created attachment 40610 [details] The document, as it should look like.
Mistake in the file type for the images : PNG and not JPEG.
MRU->OD: see attached odt. At the end of the third paragraph, there are a lot of text objects anchord to the last character. Originally these were all placed at different characters in the paragraph. When anchoring some of them back to other characters, after saving and reloading the document they are all back at the last character. Looks, like there are only a certain numer of "to character" anchored objects "allowed"...
accepted.
jpannequin point me with his debugging results to the right direction and thus, I found the defect cause. changing target to OOo 2.2
It seems have found a solution. Could you send me a patch to the source, so that I can test it as well ? Thanks.
OD->jpannequin: I've found the defect cause with the help of your investigations. The solution is in progress, but give me a couple of days to finish it. I will attach a corresponding patch.
fixed in cws swqbf90 - changed file: /sw/source/core/layout/sortedobjsimpl.cxx, 1.8.90.1
Created attachment 41036 [details] patch of the fix based on SRC680m193 (codeline for OOo 2.2
Thanks for your work on the patch. I am going to test it soon.
Applying the patch on SRC680m2, without any problem. The first quick test looks good. The frames attache to a character were correctly saved. I will do a bigger test later.
OD->MRU: Checked in internal installation set of cws swqbf90 - please verify.
Verified fix in CWS swqbf90.
Checked fix in SRC680m201 and OOF680m5. Fix should also be available in OOF680m2, which is already available for download.