Apache OpenOffice (AOO) Bugzilla – Issue 100684
Incorrect contour handling of shapes after opening a document
Last modified: 2013-07-10 14:58:21 UTC
When opening a document containing a filled bezier path drawing, the text is correctly wrapped around the contour of the drawing. When changing the text (e.g. font size), the text wraps around another "virtual" contour that is different from the contour of the drawing. The text is wrapped correctly again after saving and reloading the document, or after disabling and re-enabling the "wrap->contour" property.
Created attachment 61282 [details] Sample document - change the font size to see the effect
Created attachment 61283 [details] Incorrect wrapping of sample document
MRU->OD: I was only able to reproduce this on WinVista, XP or Linux were OK. Open attached document, select all, set font size to 10 -> the contour is wrong.
This also happens with Windows 7. (I don't know how to set two OS versions or Windows >= Vista in the OS field)
Easier steps to reproduce: Open attached document, click "page preview" -> contour is wrong Further steps: Open context menu of drawing, select Wrap -> Page wrap (which is already checked), and the contour is correct again. Save the document and open it again -> contour is wrong again in page preview. I could reproduce this behaviour on Windows Vista, Windows 7 and Ubuntu Linux.
Created attachment 76682 [details] Similar behaviour for other (simple) shapes - change font size or open print preview to see the effect The same problem also appears when using simple (polygon) shapes. Steps to reproduce: - Open testcase2.odt - Open print preview Expected result: - Text flows correctly right of the triangle. Actual result: - A part of the text appears inside the triangle. Changing the triangle (fill colour, wrapping) corrects the text wrapping (until the document is closed and re-opened).
Created attachment 77108 [details] Minimal test case (open print preview or change font size to see the effect) The effect even occurs with a single box shape. When switching to page preview or changing the font size of the text, the text wraps around an area left of the box shape (leaving a white box there). The distance between the box shape and the white box depends on the amount of (gray) margin shown left of the page (so the problem does not occur if the zoom level is so big that the page fills the entire screen). The white box even moves when changing the zoom level and re-entering page preview. The problem occurs when opening OpenDocument and Word files (so is no pure OpenOffice import problem), and can be fixed by changing the box (e.g. fill style, wrapping, position) or re-loading the file (File->Reload; Close and Open does not work) - but the problem will reappear next time opening the file.
Created attachment 77602 [details] proposed patch (already used in LibreOffice) This patch should solve the issue.
(In reply to comment #8) > Created attachment 77602 [details] > proposed patch (already used in LibreOffice) > > This patch should solve the issue. Can you confirm your patch is submitted under the Apache License v. 2.0? If so, please change the issue type to PATCH.
(In reply to comment #9) > (In reply to comment #8) > > Created attachment 77602 [details] > > proposed patch (already used in LibreOffice) > > > > This patch should solve the issue. > > Can you confirm your patch is submitted under the Apache License v. 2.0? > If so, please change the issue type to PATCH. putting patch submitter on CC in order to assure that Ariel's question is received.
The patch is licensed under Apache License v. 2.0 Not being logged in as the initial reporter (andi_@openoffice.org was my old account), I don't seem to be able to change the issue type to PATCH.
set status to patch
*** Issue 118859 has been marked as a duplicate of this issue. ***
andi_: Sorry that it takes some time to take care of this issue. I will review and apply it. BTW, regarding your former account for the issue tracker: Did you try "Forgot Password" function with the email address which was associated with "andi_@openoffice.org"?
One important note: The defect is caused by the function which rearranges the pages and its content in order to have more than one page beside each other. Thus, to reproduce the defect you have to assure that your zoom is small enough.
Comment on attachment 77602 [details] proposed patch (already used in LibreOffice) patch look good and it solves the problem. I will apply it on trunk.
"orw" committed SVN revision 1359258: #100684# - function <lcl_MoveAllLowerObjs(..)> - assure that contour c...
patch applied on trunk.
Verified on Aoo_Trunk_20121109.1800 rev 1407366, changed the font size, including smaller or larger, and save/reload, no issue found, the bug is fixed.
close it.
adjusted target to version that will contain the fix