GNOME Bugzilla – Bug 687693
ODF export looses style information on empty cells containing sheet objects.
Last modified: 2012-11-06 02:34:17 UTC
Created attachment 228198 [details] sample gnumeric file If you save the attached gnumeric file as an ODF file and open the ODF file, cell E9 is missing its background colour. Note that I9 has content and does not loose its background colour. Note that G18 has no content and contains no object and does not loose its background colour either. The problem seems to be restricted to empty cells that contain sheet objects.
I'm clearly better at making tests than using them. I don't quite understand the null_cell business going on in there.
null_cell counts the empty cells (with style null_style) that haven't been written yet. simmilarly covered_cell counts the covered cells that haven't been written yet.
Hmm, I would have guessed that the problem occurred inside odf_write_empty_cell, but in fact the empty cell is being written from odf_write_cell that is called with a NULL current_cell. In odf_write_cell we only retrieve a style if current_cell is non-Null...
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Note that this problem also existed in 1.10.17 so it may not be related to teh test failure.