Apache OpenOffice (AOO) Bugzilla – Issue 97591
table column 'lost' on save/reload in ODT
Last modified: 2010-12-10 08:34:33 UTC
1. Create new Writer doc 2. Create table 4x3, cursor should be in A1 3. Press <Alt+RightArrow> 10 times (unlarge 1st column, squeeze others) 4. Save as ODT 5. Close doc and reload: last column get 'lost' PS. Dataloss (at least from user point of view) on native format: setting P2
Confirming - as described. Happens since at least version 2.0.4. Suggest to fix for 3.1.
add CC
MRU->OS: perform the given steps. When using Alt-Arrow to change column width several times, after save & reload the last column is lost. Please have a look, if resources allow a fix for OO 3.1. Thanks!
any news?
The problem is in collecting column positions for styles' export in SwXMLTableLines_Impl::SwXMLTableLines_Impl() (sw/source/filter/xml/xmltble.cxx:141), where the position (computed as width of the column and all columns on the left) is represended by sal_uInt16. Unfortunately, 16 bits is not sufficient in some cases. For example, when I change the width of the column in the reproducer four times, widths of the columns are 24079, 13819, 13819 and 13819, giving a total of 65536, which is 0 on 16 bits. The attached patch changes the representation of column position to sal_uInt32.
Created attachment 64544 [details] a fix
Target changed to 3.x
Fixed in cws os144
Reassigned for verification
Verified in CWS os144.
Checked fix in DEV300m95.