Apache OpenOffice (AOO) Bugzilla – Issue 124389
Undo-Redo after Text input decreases multi line Table row height to single line
Last modified: 2017-05-20 10:35:35 UTC
1) Create a impress document and insert a table 2) Input several lines in a cell of the table. The height of the cell will be increased correspondingly 3) Set focus out of the impress table 4) Undo once, now the height of the cell which have multi-lines just now change to height of one line 5) Redo once. Expect: The height of the cell which have multi-lines just now should change to multi-lines Defect: The height of the cell is still one line. Test ENV: Build 1571942 Window 7 Professional SP1 64 bit
Text is obscured by table. AOO410m14(Build:9760) - Rev. 1573062 2014-03-01_04:11:01 - Rev. 1573123 Debian
*** Issue 124390 has been marked as a duplicate of this issue. ***
I can confirm the described behavior in OOo 3.2.1, OOo 3.3.0, AOO 3.4.0 and AOO 4.0.0, works fine in OOo 3.0.0
(a) Reproducible with "AOO 4.0.1 Release – German UI / German locale [AOO401m5(Build:9714) - Rev. 1524958 2013-09-20 11:40:29]" on German WIN7 Home Premium (64bit)", “historic” 4.0 User Profile used for all predecessor versions: After redo row height is reduced to single text line. Following Text lines hidden behind table (b) As expected the same in DRAW (c) It does not matter whether multi-paragraphs or multi lines by auto wrap. (d) Similar effect with LibO 4.2
"alg" committed SVN revision 1581793 into trunk: i124389 for tables refresh TextFrame when OutlinerParaObject changes
Happens since in SdrTextObj::NbcSetOutlinerParaObjectForText for the object being a SdrTableObj no NbcAdjustTextFrameWidthAndHeight is called since IsTextFrame() is false for that object type. Thinking about how to fix that. Indeed a table is no text frame, but uses AutoGrow in width and height and thus needs relayouts of that kind. Need to add this...
Added, done.
Have to reopen, the place I fixed it is in principle correct, but makes the runtime to create tables (and other ops on them) very slow; the handling is correct, but has too much overhead. I will need to make an explicit change for the Undo/Redo functionality, instead of a general one...
Corrected to strictly only relayout TextFrame in Undo/Redo, works as expected, comitting.
Okay, done.
"alg" committed SVN revision 1581814 into trunk: i124389 correct TextFrame layout for tables not when new text is set, but in ...