Apache OpenOffice (AOO) Bugzilla – Issue 105508
Text in cell is only completly visible in edit mode
Last modified: 2010-02-08 17:13:51 UTC
Open attached bugdoc, there is a table with only one cell (for simplification, the original table had more cells). The text is a one liner. Click into the text and you see that the text is actuall 3 lines This is both a (visual) data loss and also a security issue (hidden data)
Created attachment 65073 [details] Bugdoc with invisible text in cell
adding regression keyword as this worked in OOo 3.1
AW: Strange, works well on my current CWS (aw078, DEV300 m57). Need to get the CWS impoess 177, then...
AW: Found no difference yet between DEV300 m60 and DEV300 m57. When i replace the text from the BugDoc with typing text, i GET it layouted as block (as wanted), so it might have to do wit the existing text somehow. It definitely has to do with the Outliner, it just does something else with the original text...
AW: Checked ControlWord, FixedCellHeight flag and AnchorTextSize, all are the same between original and self-typed text. This hints that the difference may/should be in the OPO itself. I will need to debug the Outliner's text layouting...
AW: Found. The text portions get clipped away during primitive clipping in impDecomposeBlockTextPrimitive. It was added by CWS impress174 from SJ, supported by me. Aim was to clip text for AutoShapes (SdrCustomShapePrimitive2D). Since there already existed a CellText flag at the SdrBlockTextPrimitive2D and the cell text also needs to be clipped (and AutoShape and Cell texts are layouted the same), this flag is used. The clipping itself is very exact: A text portion is only accepted when it is completely inside the given ClipRange (the text frame in case of cell text and AutoShapes). It's so exact that the text in the exampe is NOT completely inside since it's italic. When switching italic off, the text is shown as intended. Thus, the idea for a fix is pretty straightforward: For getting the range of the text portion, do use the current font, but remove italic and fat attributes first...
AW: Added own flag for ClipOnBounds to SdrBlockTextPrimitive2D and the helper createTextPrimitive; adapted usages; corrected VerticalText stuff; corrected ClipOnBounds for CustomShapes. AW: Checked in, done. Changes are in SVX only and compatible. I'll add a diff describing the change, too.
Created attachment 65096 [details] Proposed patch for fixing this task
verified in cws, back to qa
Verified in CWS.
*** Issue 105208 has been marked as a duplicate of this issue. ***
Tested with 3.2.0 on Mac OS X 10.5.x, works fine Closing issue