After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687693 - ODF export looses style information on empty cells containing sheet objects.
ODF export looses style information on empty cells containing sheet objects.
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-11-05 22:48 UTC by Andreas J. Guelzow
Modified: 2012-11-06 02:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample gnumeric file (2.14 KB, application/x-gnumeric)
2012-11-05 22:48 UTC, Andreas J. Guelzow
Details

Description Andreas J. Guelzow 2012-11-05 22:48:20 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.
Comment 1 Morten Welinder 2012-11-06 01:41:26 UTC
I'm clearly better at making tests than using them.

I don't quite understand the null_cell business going on in there.
Comment 2 Andreas J. Guelzow 2012-11-06 02:04:02 UTC
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.
Comment 3 Andreas J. Guelzow 2012-11-06 02:16:42 UTC
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...
Comment 4 Andreas J. Guelzow 2012-11-06 02:34:17 UTC
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.