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 724898 - Pattern round trip issues
Pattern round trip issues
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2014-02-21 15:20 UTC by Morten Welinder
Modified: 2014-02-23 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2014-02-21 15:20:49 UTC
I added pattern tests to t6502.

ods seems to drop the pattern colour:

-          <gnm:Style HAlign="GNM_HALIGN_GENERAL" VAlign="GNM_VALIGN_BOTTOM" WrapText="0" ShrinkToFit="0" Rotation="0" Shade="2" Indent="0" Locked="1" Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:9999" PatternColor="0:0:FFFF" Format="General">
+          <gnm:Style HAlign="GNM_HALIGN_GENERAL" VAlign="GNM_VALIGN_BOTTOM" WrapText="0" ShrinkToFit="0" Rotation="0" Shade="1" Indent="0" Locked="1" Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:9999" PatternColor="0:0:0" Format="General">


biff7 and biff8 have problems with patterns 19 and up.

xlsx is still so messy I cannot tell.
Comment 1 Andreas J. Guelzow 2014-02-21 16:45:19 UTC
Regarding ods/odf there is more to this than just the pattern colour: We aren't saving the pattern either.
Comment 2 Morten Welinder 2014-02-21 17:36:01 UTC
biff7 and biff8 differences were format deficiencies.
Comment 3 Andreas J. Guelzow 2014-02-22 05:59:44 UTC
WHile this seems strange, ODF does not appear to have a defined way to specify pattern fills for table cells. There are hatches for graphic objects but there is no reasonable way to use them as backgrounds for table cells.

One can specify a background image for a table cell and that is probably the most appropriate way of implement pattern in an ODF supported way.

Of course the easy way of fixing the round trip issue would be to specify the pattern and colours using foreign elements.
Comment 4 Andreas J. Guelzow 2014-02-22 07:01:24 UTC
The round trip issue is fixed (the easy way). When we find an ODF consumer or producer that supports background patterns and images for cells, we can consider writing/reading the info in a standard way.
Comment 5 Morten Welinder 2014-02-23 22:25:00 UTC
I *think* we're done here.


This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.