Apache OpenOffice (AOO) Bugzilla – Issue 29101
cell formatting lost upon save in .sxc
Last modified: 2013-08-07 15:14:13 UTC
set up a sheet thus: value format cell A1: 0 General cell B1: 0 0% Save as .sxc and reload. The 0% formatting has been replaced by General. Note: this does not happen with .sdc
Hi Sascha, maybe this one is for you. As far as I can tell, this can only be reproduced if nothing else is in the column with the percent format. Therefore P4 Later. Frank
I take it.
Issue 74148 has more examples how this can occur.
*** Issue 74148 has been marked as a duplicate of this issue. ***
*** Issue 82922 has been marked as a duplicate of this issue. ***
Also, trying all of these combinations in fresh spreadsheets, then saving, closing, and opening again, results in A1 getting duplicated in B1: Values Entered Values Loaded A1 | B1 save, close, open A1 | B1 -------+------- ---------+--------- FALSE | 0 -> FALSE | FALSE FALSE | 0.00% -> FALSE | FALSE FALSE | £0.00 -> FALSE | FALSE 0 | 0.00% -> 0 | 0 0 | £0.00 -> 0 | 0 0.00% | FALSE -> 0.00% | 0.00% 0.00% | 0 -> 0.00% | 0.00% 0.00% | £0.00 -> 0.00% | 0.00% These ones work correctly: A1 | B1 --------------- 0 | FALSE £0.00 | FALSE £0.00 | 0 £0.00 | 0.00% This bug is only reliably reproducible for me when starting with a fresh document each time, entering the values, then checking their format types (which oocalc correctly guesses), then saving and loading. table:number-columns-repeated attribute on the first cell is set to 2 presumably because only the values are compared, in many cases. I would think that this counts as data corruption, and therefore more serious than merely a style/formatting bug. Particularly boolean/currency/percentage values cannot really be considered equivalent (it was a FALSE followed by £0.00 which were collapsed together into two FALSE values that caught me out). External applications that use the office:value-type field to correctly interpret data will be in trouble.
Created attachment 49188 [details] Patch on IsCellEqual function to stop numerical cells with different number-formats getting compressed together
That patch could do. Niklas, please take a look.
I was asked by the guys in IRC to send a JCA in for this patch. So that was faxed this morning: Mon 29th October 2007 at 7.20am UTC
The fix is on CWS "calc45".
correct target
back to QA for verification
found fixed on cws calc45 using Solaris, Linux and Windows build
found integrated om master OOHm5 using Solaris, Windows and Linux build