Apache OpenOffice (AOO) Bugzilla – Issue 119476
[From Symphony]]Words display incorrectly if the linespacing is set into little than font size in .doc file
Last modified: 2012-06-20 12:47:59 UTC
Created attachment 77666 [details] sample file build: Aoo 3.4 the sample file cannot display correct in Aoo 3.4
Created attachment 77667 [details] snapshot
Seems that the paragraph line spacing feature difference cause text display incorrectly. If I manually adjust the line spacing to a larger value. The text will not be clipped.
I have found the problem is that there is different text clipped mechanism between AOO & MS Word. In MS Word, if the line spacing add paragraph before spacing is enough to display text, it does not clipped text in paragraph. While in AOO, it just consider the line spacing as the condition to determine whether clipped the text in paragraph. see the method <SwTxtFormatter::CalcRealHeight(..)> in main\sw\source\core\text\itrform2.cxx Line 1756 for more detail.
Created attachment 78402 [details] patch for i119476 adjust paragraph line spacing and above paragraph spacing steps: 1.select text 2.choose format->Paragraph 3.choose Indent&spacing tab 4.modify spacing (above and below) and line spacing
I have reviewed the patch and checked it. It works fine, but I think we need some further improvements: (1) To determine, if more space is available for the first text line, only looking at the attribute is not enough. I will have a deeper look for an improved solution. (2) There are some painting errors when deleting or inserting characters. These needs to be resolved from my point of view.
Comment on attachment 78402 [details] patch for i119476 just trying to use Bugzilla workflow: marking review request with "-" according to the result of my review - see comment 5 (1) improvement regarding space calculation needed from my point of view (2) correction of paint error needed from my point of view I will take care of (1)