You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/06/13 11:01:12 UTC
[Bug 119952] [From Symphony]Cannot open sample file
https://issues.apache.org/ooo/show_bug.cgi?id=119952
qiuhuaidong@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #78290| |review?
Flags| |
--- Comment #1 from qiuhuaidong@gmail.com ---
Created attachment 78290
--> https://issues.apache.org/ooo/attachment.cgi?id=78290&action=edit
patch
Patch to fix the defect
Root cause: The function lcl_CalcAutoWidth() which is used to calculate the
width of a fly frame is incorrect, the function uses
SwTxtFrm::CalcFitToContent() to calculate the width of the paragraphs inside
the fly frame, then add the left and right margin sizes to get the total width
of the fly frame. But the SwTxtFrm::CalcFitToContent() method will return the
total width (Print area width) of the SwTxtFrm when the SwTxtFrm is in the lock
state, Add the left and right margin sizes to the return value of
SwTxtFrm::CalcFitToContent() will cause the algorithm think the fly frame can
not contain the text in it, so it will keep split the text to fit them into the
fly frame which will cause AOO freeze.
Solution: Don't add the margin sizes to the SwTxtFrm::CalcFitToContent() return
value when the SwTxtFrm is locked.
--
You are receiving this mail because:
You are the assignee for the bug.